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

"waitForElementNotPresent" always waits till the timeout value #2066

Closed
VasylQA opened this issue Apr 15, 2019 · 6 comments
Closed

"waitForElementNotPresent" always waits till the timeout value #2066

VasylQA opened this issue Apr 15, 2019 · 6 comments
Labels

Comments

@VasylQA
Copy link

VasylQA commented Apr 15, 2019

Nightwatch version: 1.1.0

When using "waitForElementNotPresent" this command always waits till the timeout value and only then returns result. Checked using page-objects and directly in test code.
Element for sure is not present but command is keeping wait till timeout

Logs:
→ Running command: waitForElementNotPresent ('test locator', 10000) Request POST /wd/hub/session/'...'/elements { using: 'css selector', value: 'test locator' } Response 200 POST /wd/hub/session/'...'/elements (31ms) { sessionId: '', status: 0, value: [] } Request POST /wd/hub/session/'...'/elements { using: 'css selector', value: 'test locator' } Response 200 POST /wd/hub/session/'...'/elements (16ms) { sessionId: '', status: 0, ...

@beatfactor
Copy link
Member

Can you send a full log?

@beatfactor
Copy link
Member

Until there's a fix you can try using expect.element().not.present instead.

@VasylQA
Copy link
Author

VasylQA commented Apr 15, 2019

@beatfactor I will be able to give full log in the evening but this should be very easy to reproduce (if it doesn't happen on my side only ofc)

@beatfactor
Copy link
Member

Does this happen in v1.0.19 as well?

@bethcodes
Copy link

I am seeing this with version 1.2.4, and it applies to all cases of waitForElementNotPresent and also expect.element().not.present

@beatfactor
Copy link
Member

@bethcodes can you open a new issue please?

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

No branches or pull requests

3 participants