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

"Element is not clickable at point" in tests when upgrading to from Electron ^1.7.9 to 2.0.0-beta.2 #12318

Closed
ghost opened this issue Mar 16, 2018 · 9 comments
Labels
2-0-x blocked/need-info ❌ Cannot proceed without more information

Comments

@ghost
Copy link

ghost commented Mar 16, 2018

I'm getting the below error after upgrading the Electron to "electron@2.0.0-beta.2." from "electron": "^1.7.9",

unknown error: Element is not clickable at point (1792, 1412)
Error: An unknown server-side error occurred while processing the command.
at elementIdClick("0.19542284114016173-38") - click.js:20:22

Below is the same function was working before the upgrade but now fails with the above error message. Greatly appreciate any pointers to resolve this issue.

export function marketRegionFieldNavigation(client) {
// Select Market from the list of Dropdown
client.click(territoriesPage.marketField)
.pause(5000)
.keys(jsonTestData.market)
.keys(webdriver.Key.ENTER)

// Select Release Region from the list of displayed Release Regions
.waitForExist(territoriesPage.releaseRegionField)
.click(territoriesPage.releaseRegionField)
.keys(jsonTestData.releaseRegion)
.keys(webdriver.Key.ENTER)

// Select Build Region from the list of BRs
.waitForVisible(territoriesPage.buildRegionField)
.click(territoriesPage.buildRegionField)
.keys(jsonTestData.buildRegion1)
.keys(webdriver.Key.ENTER)
.pause(3000)

// Click on the Continue Button
.pause(waitTime.explicitWaitTimeShort)
.click(mainPage.continueButton);

}

@welcome
Copy link

welcome bot commented Mar 16, 2018

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

To help make it easier for us to investigate your issue, please follow the contributing guidelines.

@ckerr ckerr added blocked/need-info ❌ Cannot proceed without more information 2-0-x labels Mar 16, 2018
@ckerr
Copy link
Member

ckerr commented Mar 16, 2018

Thank you for taking the time to report this issue and helping to make Electron better.

Please provide a standalone test that a tester could run to reproduce the issue. This makes fixing issues go more smoothly: not only does it ensure the right thing is tested, but it also prevents triage from bottlenecking on making testers write new tests for each new issue.

I'm setting the more-information-needed label for the above reasons. After you've responded, please @ me in a followup comment.

Thanks in advance! Your help is appreciated.

@ghost
Copy link
Author

ghost commented Mar 16, 2018

Individual_Test.txt

@ckerr Attached the individual test. I hope this is sufficient to troubleshoot the issue I'm facing.

@ckerr
Copy link
Member

ckerr commented Mar 16, 2018

@sunkari00, thank you for this, but a standalone test would be more useful as something that could be run outside of your local environment.

Would it be possible for you to write a small index.html + main.js that exercises this bug without dependencies?

@ghost
Copy link
Author

ghost commented Mar 16, 2018

@ckerr , thank you for your quick response. The problem is simple. Our automation mocha tests were all running fine before the electron upgrade. Once we upgraded to electron@2.0.0-beta.2 . All our tests are failing with the below error message. Basically. webdriver is unable to local the object as the object is not in the viewport. Earlier same tests were working without having to scroll to the object and click. But now, looks like in order to click on any object the object needs to be in visible area and viewport to perform click operations. This's indeed a huge drawback going into the newer version where webdriver click operations are not working if the object is not in the viewport.

unknown error: Element is not clickable at point (1792, 1412)
Error: An unknown server-side error occurred while processing the command.
at elementIdClick("0.19542284114016173-38") - click.js:20:22

@felixrieseberg
Copy link
Member

You may have noticed that you paid $0 for Electron, so if anyone is going to fix this for you, they're going to do it for free. Trying to figure out what is actually going on here is difficult since your code has references to code that's not here - we'd have to guess what's going on.

A general rule of thumb: If it's too much trouble for you to create a standalone app that reproduces the bug it'll likely be too much trouble for someone to fix this for you.

@ckerr
Copy link
Member

ckerr commented Mar 17, 2018

@sunkari00, I have no context for the application that the test was written for.

However, Electron also uses Mocha.

If your application's authors could write a small test application and mocha test case for it, then we could use that to reproduce the issue here.

@ckerr
Copy link
Member

ckerr commented Mar 17, 2018

Possibly related to https://bugs.chromium.org/p/chromedriver/issues/detail?id=1852 -- upstream reported seeing a similar issue in c61+.

If it's the same issue, upstream fixed it this patch:
https://chromium.googlesource.com/chromium/src/+/47d5c0062c7a4a7a41374c91da4170e22ea681e1%5E%21/

@ckerr
Copy link
Member

ckerr commented Mar 17, 2018

@sunkari00, you may want to ensure that your chromedriver version is up-to-date. At least one Selenium user reports this fixed in chromedriver 2.32.

At any rate, this seems to have moved out of the realm of "Electron bug" iand so I'm going to close this issue. If you feel this is in error, please let me know.

If this is a test harness issue, you may want to check out the Electron community. There are also a bunch of helpful people in this community forum that should be willing to point you in the right direction.

@ckerr ckerr closed this as completed Mar 17, 2018
@ckerr ckerr changed the title I'm getting the below error after upgrading the Electron to "electron@2.0.0-beta.2." from "electron": "^1.7.9" "Element is not clickable at point" in tests when upgrading to from Electron ^1.7.9 to 2.0.0-beta.2 Mar 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2-0-x blocked/need-info ❌ Cannot proceed without more information
Projects
None yet
Development

No branches or pull requests

2 participants