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

Canopy tests started failing with elementNotfound exception #493

Open
ghost opened this issue Apr 3, 2020 · 7 comments
Open

Canopy tests started failing with elementNotfound exception #493

ghost opened this issue Apr 3, 2020 · 7 comments

Comments

@ghost
Copy link

ghost commented Apr 3, 2020

Describe the bug
The canopy tests started failing with below exception "canopy.types+CanopyElementNotFoundException: can't find element ........" after chrome version upgraded to beta - 81.0.4044.20. It was working before with the stable version of chrome 80.0.3987.106.
Chromedriver version : 81.0.4044.69
Canopy version: 2.1

Is there any dependency b/w canopy and browser versions?

@lefthandedgoat
Copy link
Owner

It loks like your chrome driver version is ahead of your chrome version (ending in 69 vs ending in 20)

It looks like there is a .20 for chrome driver:

https://chromedriver.chromium.org/downloads

Try that and it will probably fix it. Or you can try updating your chrome again and see if it will update to .69

@ghost
Copy link
Author

ghost commented Apr 3, 2020

Just now, I have downloaded the latest version of chrome beta and chromedriver.

If you are using Chrome version 81, please download ChromeDriver 81.0.4044.69

Chrome: Version 81.0.4044.83
ChromeDriver: 81.0.4044.69

It failed:

  1. Couldn't find any elements with selector ...
  2. Exception details:
    canopy.types+CanopyElementNotFoundException: can't find element ....
    etc.

@lefthandedgoat
Copy link
Owner

I will have to reproduce tonight sometime.
can you try to run a really simple test like this?

"Apostrophes don't break anything" &&& fun _ ->
    url "http://lefthandedgoat.github.io/canopy/testpages/"
    count "I've got an apostrophe" 1

@ghost
Copy link
Author

ghost commented Apr 3, 2020

So I have included this simple test in our POC. This test passed, but actually we set certain things before test execution, where in it calls some div elements. and it fails there. so do these elements depends on the browser also?

@lefthandedgoat
Copy link
Owner

I think what is happening is that your selector may not be correct.

If you take the selector your are trying to use, open chrome dev tools in your normal browser (press f12), then in the console tab type $('your selector here'), if it does not return anything, then you have an issue. This example should return one so you can see what the results would look like. $('body')

@ghost
Copy link
Author

ghost commented Apr 3, 2020

Ok I will try that. But again why the same selector(the div) is working in other browser version, ? It was working before. When it is modified to use latest chrome beta version, then it started failing.

@lefthandedgoat
Copy link
Owner

I honestly dont know. Probably best to not use beta version of a browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant