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

Assert hangs if element does not exist #2

Open
ryanzec opened this issue Aug 5, 2013 · 5 comments
Open

Assert hangs if element does not exist #2

ryanzec opened this issue Aug 5, 2013 · 5 comments
Assignees
Labels
Milestone

Comments

@ryanzec
Copy link
Contributor

ryanzec commented Aug 5, 2013

Certain assertions will just hang indefinitely if the selector does not return a element. Certain asserts work fine with a selector returning no elements like exists() and doesntExist however 2 that hang that I have tested are attr() and text().

@ghost ghost assigned asciidisco Aug 15, 2013
@asciidisco
Copy link
Member

Yep. This is a big bad bug, it can be solved by checking the return value of the webdriver response, in order to make it work for firefox too, smth. in the firefox driver must be changed. Seems doable but needs a bit of work.

@ryanzec
Copy link
Contributor Author

ryanzec commented Aug 15, 2013

I should mention this seems to happen with other things like if I do:

toWindow('window-does-not-exist')

and there is no window with the name window-does-not-exist then the tests just hangs and needs to be manually killed.

@karthickg20
Copy link

i think this issue still exists..
the action ".query" will hang, if the "selected element" doesn't exists on the DOM.

".query('selected element')"

@izocan
Copy link

izocan commented Apr 17, 2014

same issue when using the "type" and "click" actions.

@yuriyzubarev
Copy link

Voting for a fix prioritization.

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

5 participants