selenium-chromedriver

Find Elements ın Python Selenium

Find Elements ın Python Selenium Question: Im trying to find some button elements with XPATH,CSS_SELLECTOR since yesterday but my codes is not working. I dont understand I have one of the tags I chose in the website but cant find the element what is the problem ? from selenium import webdriver from selenium.webdriver.common.keys import Keys …

Total answers: 2

Selenium Python webdriver condition

Selenium Python webdriver condition Question: My script can give me 3 separate webdrivers based on what I want i.e., my script can either install the chromedriver or safaridriver, or firefoxdriver. As an example: chromedriver: <selenium.webdriver.chrome.webdriver.WebDriver (session="8032fa9146e8fc2a764aa278a1521014")> safaridriver: <selenium.webdriver.safari.webdriver.WebDriver (session="7703B595-D074-40C4-82D5-D4A265C2AAB2")> firefoxdriver: <selenium.webdriver.firefox.webdriver.WebDriver (session="d2549d48-bec3-4ccc-b95f-7339bbe4ca60")> What is the best way to have the script run differently based on …

Total answers: 1

Select a value from a select element using selenium in Python

Select a value from a select element using selenium in Python Question: this is my first time using selenium, and I have trouble. I am trying to access this website, open the ISD dropdown, and select the option "Wayne RESA (82)," which is the value 119. I have this code isd = Select(WebDriverWait(browser, 10).until(EC.visibility_of_element_located((By.ID,"isds")))) isd.select_by_value("119") …

Total answers: 2

Selenium "element click intercepted error "

Selenium "element click intercepted error " Question: url=https://www.hipodromx.com/galop.aspx?Page=1 I want to click on all the tabs in order and print the texts in the tables opened under them to the list, but when I run the code, I get the following error, I couldn’t figure out why. Image `driver.find_element_by_xpath("//img[@id=’ctl00_ContentPlaceHolder1_ASPxPageControl1_cbGalopIstatistikMesafe_B-1Img’]").click() sleep(4) TABLO=[] for i in range(0,6): …

Total answers: 2

Save file dialog when trying to download file in selenium chrome

Save file dialog when trying to download file in selenium chrome Question: I am using selenium grid in docker. My nodes are created from selenium/node-chrome:4.8.0 image and my hub is created from selenium/hub:4.8.0 image when I try to download a file with code below, google chrome shows a dialog asking for download path. from selenium …

Total answers: 1

Chrome opens website and Immediately Closes when Using Selenium and Python

Chrome opens website and Immediately Closes when Using Selenium and Python Question: Chrome Version : 110.0.5481.104 Chrome Driver Version: 110.0.5481.77 From What I have heard last digits of the version do not matter. Its just a Simple Piece of Code:- from selenium import webdriver import os os.environ[‘PATH’] =r"C:/Users/xxxx/Desktop/xxxx/Selenium/chromedriver_win32/chromedriver.exe" driver=webdriver.Chrome() driver.get("https://phptravels.com/demo/") Chrome Opens up shows the …

Total answers: 1

driver.find_element(By.XPATH, "xpath") not working

driver.find_element(By.XPATH, "xpath") not working Question: I am trying to learn Selenium in Python and I have faced a problem which stopped me from processing. As you might know, previous versions of Selenium have different syntax comparing the latest one, and I have tried everything to fill the form with my code but nothing happens. I …

Total answers: 2

Selenium works only when I'm connected to a remote server

Selenium works only when I'm connected to a remote server Question: I am trying to run a simple Selenium chrome-driver test on a remote Ubuntu server (EC2). In order to run the code immediately after rebooting, I define the following crontab entry: @reboot export DISPLAY=:0 && export PATH=$PATH:/usr/local/bin && nohup /usr/bin/python3 /home/ubuntu/test/play/client.py 60 http://192.162.2.2:8080 & …

Total answers: 1