Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Other element would receive a click error when attempting to select a value in dropdown if width is smaller than value width #1479

Closed
lyoff opened this issue Jan 14, 2016 · 7 comments

Comments

@lyoff
Copy link

lyoff commented Jan 14, 2016

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>
@dbenoit
Copy link

dbenoit commented Jan 15, 2016

I am getting that too after upgrading to version 2.49. But I also updated ff to 43.0.4. Scripts worked fine before.

@thomasbecker
Copy link

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.

@nixsec
Copy link

nixsec commented Jan 21, 2016

I'm seeing the same issue as well. Until it's resolved, we've rolled back to the previous version.

@marcell-pataky-epam
Copy link

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 (...)

@dmansfield
Copy link

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.

@dmansfield
Copy link

I'm guessing commit a240141 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.

@barancev
Copy link
Member

Fixed by b21a4f5

@lock lock bot locked and limited conversation to collaborators Aug 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants