Other element would receive a click error when attempting to select a value in dropdown if width is smaller than value width
On Selenium version 2.49.0
Error:
org.openqa.selenium.WebDriverException: Element is not clickable at point (70, 15). Other element would receive the click: <body></body>
Test:
@Test
public void selectTest() {
driver.get(baseUrl);
new Select(driver.findElement(By.id("xyz"))).selectByValue("c");
}
HTML
<html lang="en">
<head>
</head>
<body>
<select id="xyz" style="width: 50px;">
<option value="a">abc</option>
<option value="b">some long text here</option>
<option value="c">my option</option>
</select>
</body>
</html>
I am getting that too after upgrading to version 2.49. But I also updated ff to 43.0.4. Scripts worked fine before.
Same issue happens to me since we upgraded to Selenium 2.49.0 to have firefox 43.x support. The button to be clicked doesn't move around, it's definitely clickable and it's visible.
Rolling back to previous selenium and firefox versions for now.
I'm seeing the same issue as well. Until it's resolved, we've rolled back to the previous version.
The same here. We had to roll back to a previous version also. All of our tests are failing since the update. I only met with this issue on Chrome earlier.
org.openqa.selenium.WebDriverException: Element is not clickable at point (738.5, 6.7166595458984375). Other element would receive the click: <li class="main-menu-item"></li> Command duration or timeout: 123 milliseconds Build info: version: '2.49.1', revision: 'b41a073', time: '2016-01-21 17:32:24' (...) os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_45' Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{applicationCacheEnabled=true, rotatable=false, handlesAlerts=true, databaseEnabled=true, version=43.0.1, platform=WINDOWS, nativeEvents=false, acceptSslCerts=true, webStorageEnabled=true, locationContextEnabled=true, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: 6774637f-1249-4a7c-9eee-330873ec31ff at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678) at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:327) at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:85) at (...)
I'm also seeing an issue where latest WebDriver (2.49.0) is clicking in the wrong location for a stationary element. Click seems to be just below the bottom of the given element instead of in the middle. X coordinate is fine.
Using with firefox version: firefox-38.5.0-2.el5.centos
In my scenario, the element is an anchor tag, nothing to do with select or option.
I'm guessing commit a2401418b8f73753f3fc9a7ef666be715177b6a5 is triggering this, but it still begs the question why the click coordinates are "off" in the y dimension by element.height/2.
Unless I mis-remember that an element click is supposed to be in the middle of the element.
Fixed by b21a4f52d37588d2938aace2f47c93d442cd052e