Open manikandanma17 opened 1 day ago
@manikandanma17, thank you for creating this issue. We will troubleshoot it as soon as we can.
Triage this issue by using labels.
If information is missing, add a helpful comment and then I-issue-template
label.
If the issue is a question, add the I-question
label.
If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted
label.
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable G-*
label, and it will provide the correct link and auto-close the
issue.
After troubleshooting the issue, please add the R-awaiting answer
label.
Thank you!
Hi @manikandanma17 I tried to reproduce the error with selenium 4.25 but couldn't, here is the minimal python script I used, can you see if this works on your setup?
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.chrome.service import Service
chrome_service = Service('/Users/navinchandra/Downloads/chromedriver-mac-x64/chromedriver') # replace with your chromedriver path
browser = webdriver.Chrome(service=chrome_service)
browser.get('https://www.google.com')
element = WebDriverWait(browser, 3).until(
EC.element_to_be_clickable((By.XPATH, '/html/body/div[1]/div[3]/form/div[1]/div[1]/div[1]/div/div[2]/textarea'))
)
browser.execute_script('arguments[0].click();', element)
browser.quit()
I have tried this with both python 3.11 and 3.12 and it works.
Also, check if the XPATH
is valid in your case since you are getting the TimeoutException
.
Any additional info would be helpful.
What happened?
I tried to run my python selenium script today contains WebDriverWait class imported as follows and observed below Timeout exception. Please refer to Relevant log output section for error logs.
Example: from selenium.webdriver.support.ui import WebDriverWait
NOTE: The same python selenium script was working fine till last friday (4th Oct 2024) when I had SELENIUM 4.24.0 installed in mac system. Today i started seeing this issue, then when I investigated further, i observed that Selenium latest version 4.25.0 was installed in my system. Then I uninstalled SELENIUM 4.25.0 and reinstalled SELENIUM 4.24.0 in my system and found that my same python selenium scripts are started working fine now.
How can we reproduce the issue?
Relevant log output
Operating System
Mac Ventura 13.5.1
Selenium version
Python 3.12
What are the browser(s) and version(s) where you see this issue?
Chrome, Version 129.0.6668.90
What are the browser driver(s) and version(s) where you see this issue?
Selenium 4.25.0
Are you using Selenium Grid?
No