nightwatch: Upgrading from 0.9.x to 1.0.8 throws an error on waitForElementVisible
My current scenario is that I am in the process of upgrading our test repository from 0.9 -> 1.0 however after following the wiki and getting the tests to start, some basic actions are performed correctly, such as navigating to the right page and providing feedback on that. However when the tests hit a waitForElementVisible the console reports the error Error while running .isElementDisplayed() protocol action: undefined.
The test steps are as follows:
var page = browser.page.testPage();
page.navigate();
page.waitForElementVisible('@testPanel');
Running the command with --verbose reports:
Running command: waitForElementVisible
Request POST /session/0d03be1f5a8319f7565664c337a0c881/elements
{ using: 'css selector', value: '#test-panel' }
Response 200 POST /session/0d03be1f5a8319f7565664c337a0c881/elements (18ms)
{ sessionId: '0d03be1f5a8319f7565664c337a0c881',
status: 0,
value: [ { ELEMENT: '0.03954989682254517-1' } ] }
Error while running .isElementDisplayed() protocol action: undefined
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 6
- Comments: 34 (12 by maintainers)
Commits related to this issue
- Fixed #1864 - using Edge with external selenium cloud services. — committed to nightwatchjs/nightwatch by beatfactor 6 years ago
@beatfactor
Getting the same error through BrowserStack only.
Here’s my config for Browserstack:
Browserstack settings:
And this is my local config that I use before pushing. And in my local config, it works as expected.
@Everlag There will be a fix for edge posted this week.
@beatfactor The problem still exists on
1.0.11while using theEdgebrowser (using BrowserStack) BTW,ChromeandFirefoxwork fine on latest. Also, if revert to0.9.xeverything works includingEdgeThe probem seems to be on the URL, see the
[object object]/wd/hub/session/a495917005efc0660569a11a1d2f713969d426db/element/[object Object]/displayed@gmcdev no problem. I should add
browseras an alias as well, or at least show an error message.@beatfactor same config as my previous post – thanks for looking into it!
We are coming across similar problems with
waitForElementVisible()in Chrome environments. Everything was working fine until earlier this week.We have scaled back to the sample Browserstack test, here: https://www.browserstack.com/automate/nightwatch#sample-test
Same problem in Chrome v60-69 (letting Browserstack pick Chromedriver).
Works fine in Firefox on Browserstack.
Works intermittently when running Selenium/Chromedriver/Chrome.app installed locally on OSX.
And the result:
I’m not convinced this is a Nightwatch issue, so apologies for posting here, if it’s not. We’ll keep digging tomorrow.