r/SeleniumPython • u/parcifal_ • Aug 27 '24
Help Log networking in selenium
Hello everyone, how can i get logs of network fetch calls?
r/SeleniumPython • u/parcifal_ • Aug 27 '24
Hello everyone, how can i get logs of network fetch calls?
r/SeleniumPython • u/[deleted] • Aug 26 '24
I need a help i am trying to do code but when i run it my browser closes instantly even for a simple code I tried time.sleep but didn’t worked as well yt tutorials but nothing worked
r/SeleniumPython • u/PokerFace-21 • Aug 20 '24
Hi everyone, i am seeking anyone who has experience in selenium python for a code review as i am facing few errors and needed a suggestion towards my approach of test setup. DM me or comment below as well we can connect. I would really appreciate. 🥹🙏🏻
r/SeleniumPython • u/Thefunkycow21 • Aug 15 '24
I'm trying to collect information from the website: quicksell.store. When you hover over an item on the right, it displays information about that item. I'm trying to collect this information for each item using selenium, but I can't figure out how. If anyone knows how to go about doing this I would really appreciate the help.
r/SeleniumPython • u/Delicious-Jury-344 • Aug 07 '24
I want to automate posting videos from a folder to youtube. It is going to simply take the video on the local folder, and automate the posting, is this legal to do with selenium?
r/SeleniumPython • u/rasul_r_a_z • Jul 29 '24
It is interesting that I have been using Selenium for automaton processes for some time. For a project, I preferred to use webdriver_selenium to access the drivers for the convenience of myself and those who intend to use my program, and I expected to be able to use the driver in offline mode once the program works in online mode. But it seems that its mechanism is different. Does anyone have experience in this field to familiarize me with the mechanism of webdriver_manager? Is there a way to use its features in offline mode?
r/SeleniumPython • u/z1y2w3 • Jun 13 '24
Currently doing some scraping with Selenium and I am struggling with a page that seems to be fighting me:
The page opens a link in a new tab
I want to use driver.window_handles to iterate through the tabs to find the one I am looking for. However, this is somehow detected by the page and it closes the tab that I want to scrape as soon as I call window_handles :(
So I tried to disable the JavaScript closing function, using driver.execute_script() with window.close = function() { }; and close = function() { };. But this does not suppress the closing of the tab :(
I am really surprised as to what is going on here and how to bypass this.
Using selenium~=4.16.0. Also tried with undetected-chromedriver~=3.5.5.
Edit: just realized that disabling of the close function is of course not working. The call to close is in the new window/tab and I don't think I can override it from the old tab :(
r/SeleniumPython • u/DMVTECHGUY • May 20 '24
I’m working on an automation project and I was wondering if I can use selenium sequentially. I have multiple functions for specific selenium task like search the web, etc. My issue is I can get the script to run but the browser closes automatically after the script finished running initially, but I was hoping that I can trigger multiple scripts in the same selenium instance until my conditions are met then it will trigger the quit driver function. I’m kind of new to web automation. Can I use selenium in this way or do I need to look for another alternative method?
r/SeleniumPython • u/B6-- • May 07 '24
How can I bypass cloudflare with selenium. I am using firefox as my base browser btw.
r/SeleniumPython • u/coldylocks45 • Apr 30 '24
Hi, hoping someone can help me as I just spent over and hour bashing my dead on my desk.
The search_button below works it's finding the proper button I need on the page. But I would like it to click the button and open in a new tab.
search_button = driver.find_element(By.CSS_SELECTOR, "#edit-submit")
driver.execute_script(f"window.open({search_button});")I get the following error. It seems I'm not passing the proper structure to the script?
File "C:\Python\Python311\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.JavascriptException: Message: javascript error: Unexpected token '<' (Session info: chrome=124.0.6367.61)
r/SeleniumPython • u/[deleted] • Apr 29 '24
Hi there 👋 Pretty experienced shitty dev here 👋
So I'm currently trying to automate a process for me using Selenium but, I'm at a point where I have tried every xpath possible and the popup I want to click just doesn't want to go away :(
Because I usually do Reddit from my phone I don't have the code with me rn but what do you do when you have tried every path? The weird thing is that it should be possible to click it. It isn't any external program like a extension or something like that, the element is there in HTML so it should be clickable.
So yeah what is your step process of debugging selenium and maybe there is a thing I have overlooked:)
r/SeleniumPython • u/Amocon • Apr 23 '24
So in my company i have the task to test synthetic monitorings for our websites, but these internal website mostly need an authentication (Azure AD) and i dont know how to implement code to access the website behind the authentication. Can somebody guide me please?
r/SeleniumPython • u/Valuable_Quantity515 • Apr 12 '24
Unable to play this video in Selenium, works in regular browser
https://hd2watch .tv/watch-series/greys-anatomy-hd-39545/1428686
player is just all black
r/SeleniumPython • u/[deleted] • Mar 26 '24
I get this error, despite locating the right element
While running the py file it pops out the below error
Message: no such element: Unable to locate element: {"method":"xpath","selector":
r/SeleniumPython • u/abionic • Mar 22 '24
r/SeleniumPython • u/Mc5teiner • Mar 20 '24
Hello everyone, I'm new to selenium and also not so deep into the coding at all so I'm quite happy to got so far :D
So I want to automate a Process where I need to klick a Button, this Button get's only active after a few seconds. This is because of a script that got implemented to see if everything is okay to proceed. I placed the script at the End here.
My Problem is now, that I can't click the button with selenium.
I tried these options:

and none of them worked, I think it's because the element is part of the script and not a normal button in the source code. Does anyone here have an idea how to solve this problem?
<div class="navbar navbar-expand-md navbar-light action-bar"> <div id="action-toolbar" name="action-toolbar"> </div><script>kendo.syncReady(function(){jQuery("#action-toolbar").kendoToolBar({"items":[{"enable":false,"id":"save-button","text":"\u003ci class=\u0027icon-floppy-disk\u0027\u003e\u003c/i\u003eSpeichern","type":"button","attributes":{"class":"k-primary save-button","data-activewhendirty":"","role":"button","aria-disabled":"true","disabled":"disabled","tabindex":"-1"}},{"enable":false,"id":"reset-button","text":"\u003ci class=\u0027icon-undo\u0027\u003e\u003c/i\u003eVerwerfen","type":"button","attributes":{"class":"reset-button","data-activeif":"ContractChangeDetails.resettable","role":"button","aria-disabled":"true","disabled":"disabled","tabindex":"-1"}},{"enable":false,"id":"totalValueCalculationButton","text":"\u003ci class=\u0027icon-calculator3\u0027\u003e\u003c/i\u003eGesamtwertberechnung","type":"button","attributes":{"data-id":"1008429","role":"button","data-activeif":"ContractChangeDetails.calculatable","disabled":"disabled"},"click":ContractChangeDetails.totalValueCalculationClickHandler},{"enable":false,"id":"setContractPrice","text":"\u003ci class=\u0027icon-coin-euro\u0027\u003e\u003c/i\u003eVertragspreis setzen","type":"button","attributes":{"data-id":"1008429","role":"button","data-activeif":"ContractChangeDetails.calculated","disabled":"disabled"},"click":ContractChangeDetails.setContractPriceClickHandler},{"enable":false,"id":"transferToContract","text":"\u003ci class=\u0027icon-add-to-list\u0027\u003e\u003c/i\u003eSofort in den Vertrag überführen","type":"button","attributes":{"data-id":"1008429","data-activeif":"ContractChangeDetails.transferable","role":"button","disabled":"disabled"},"click":ContractChangeDetails.transferToContractClickHandler},{"enable":false,"id":"discardContractChange","text":"\u003cspan class=\u0027k-icon k-i-x-outline\u0027\u003e\u003c/span\u003eVertragsänderung verwerfen","type":"button","attributes":{"data-id":"1008429","data-activeif":"ContractChangeDetails.discardable","role":"button","disabled":"disabled"},"click":ContractChangeDetails.discardClickHandler},{"enable":false,"id":"createKonkalProcess","text":"\u003ci class=\u0027icon-link\u0027\u003e\u003c/i\u003eVorgang anlegen","type":"button","attributes":{"data-id":"1008429","data-activeif":"ContractChangeDetails.createProcessIsAllowed","role":"button","disabled":"disabled"},"click":ContractChangeDetails.konkalCreateProcessClickHandler},{"enable":true,"id":"export-button","text":"\u003ci class=\u0027icon-download\u0027\u003e\u003c/i\u003eExportieren \u003ci class=\u0027icon-arrow-down22\u0027\u003e\u003c/i\u003e","type":"button","attributes":{"data-activeif":"ContractChangeDetails.exportable","role":"button"}},{"enable":false,"id":"import-button","template":jQuery('#fileUploadDialogTemplate').html(),"text":"File","type":"button","attributes":{"data-id":"1008429","data-contextmenu":"false"}}]});});</script> </div>
P.s.: it's an intranet website, so I can't share the link with you.
r/SeleniumPython • u/No-Nefariousness3465 • Mar 17 '24
Is there any online tool or library that is used to convert Python code to selenium .side file?
r/SeleniumPython • u/misty_bellina • Mar 17 '24
Hey, I’m completely new to programming and wanted some help on running this code:
https://github.com/LordFruitSnacks/SatCenterSearch
This tool would help greatly as I am a highschooler that needs to take the SAT in June but since all the spots near me were full I keep checking the website everyday to find test centers that might’ve opened up but even when they do, they fill up too quickly for me to sign up so this tool helps check for open ones so I don’t have to stay on the website 24/7. Any help or redirects to somewhere I can ask for help would be awesome, thanks!
r/SeleniumPython • u/Significant-Art3996 • Mar 15 '24
Hi guys,
Does anyone know how I can open multiple brave browsers using Selenium?
I was using
option.add_argument(f"--profile-directory=Profile {i}")
option.add_argument(f"--user-data-dir=BraveSoftware\\Brave-Browser\\User Data")but it gives me the following error when I try to open more than one profile:
File "Python\Python310\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.SessionNotCreatedException: Message: session not created: Chrome failed to start: exited normally. (session not created: DevToolsActivePort file doesn't exist) (The process started from chrome location AppData\Local\BraveSoftware\Brave-Browser\Application\brave.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.) I'm not sure what is the issue here
r/SeleniumPython • u/Affectionate-Gold-86 • Mar 11 '24
If anyone can help me I want to know how to record a video using (Selenium Python) while running the test case on my local machine or browser.
r/SeleniumPython • u/Confident-Walk-929 • Mar 05 '24
Has anyone used selenium on a flask app? It’s giving me a lot of problems. I’ll pay someone for some help
r/SeleniumPython • u/Purple-Obligation357 • Feb 24 '24
I have very little experience working with selenium and cant figure out why shortcuts I'm trying to use aren't working. I know that there are multiple ways to do things I'm trying to do eg by executing js snippets, but I'm interested exactly what's wrong with keyboard keys.
Chrome version:122.0.6261.70 (Official Build) (64-bit)
Selenium version 4.18.1
Code:
This works correctly (simple text input):
from selenium import webdriver
from selenium.webdriver.common.by import By
import time
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
driver = webdriver.Chrome()
driver.get("https://google.com")
input_element = driver.find_element(By.CLASS_NAME, "gLFyf")
input_element.send_keys("test")
time.sleep(10)This also works fine (inserts "TEST"):
input_element.send_keys(Keys.SHIFT + "test")This does not work:
input_element = driver.find_element(By.CLASS_NAME, "gLFyf")
input_element.send_keys(Keys.CONTROL + "t") # t,j,w,r and other keysThis does not work
ActionChains(driver).key_down(Keys.CONTROL).send_keys("t").key_up(
Keys.CONTROL
).perform()This also does not work:
driver.find_element(By.TAG_NAME, "body").send_keys(Keys.CONTROL, "t")I also tried and it didn't help:
Changing selenium versions
Reinstalling selenium
Using different chrome profiles
Resetting chrome to default settings
ps Any help is appreciated, I spent hours searching for solution and didn't succeed
r/SeleniumPython • u/2xmymoney • Feb 23 '24
r/SeleniumPython • u/min479 • Feb 22 '24
if there's a selector is like this,
button = "#button"
how do i hide( or delete) it?
if you know any useful sites, or documents please let me know in the comment section