New answers tagged

0

Reason: This is a known issue for some time now. https://github.com/SeleniumHQ/selenium/search?q=ElementClickInterceptedException&type=Issues This exception suggests that there is another element (div below the button) will receive the click. Solutions: 1. Use another locator 2. Use Javascript executor driver.execute_script(JSCode,arguments) e.g. driver....


0

Try using JavaScriptExecutor C# IWebElement element = driver.FindElement(By.XPath("//button[@role='button']")); IJavaScriptExecutor jse2 = (IJavaScriptExecutor)driver; jse2.ExecuteScript("arguments[0].click()", element); Python element = driver.find_element_by_xpath("//button[@role='button']") driver.execute_script("arguments[0].click();", element)


2

You can try using the ThreadLocal Class, so each running thread would be assigned it's own webdriver instance. See pseudocode to get the idea: private static readonly ThreadLocal<IWebDriver> WebDrivers = new ThreadLocal<IWebDriver>(); public static IWebDriver Instance { get { if (WebDrivers.Value == null) { ...


Top 50 recent answers are included