-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Throwing TimeoutError
when chained .find() command fails
#4078
Comments
Hey i would like to know that are you working on this? |
Hey @Honey2339 I am not working on this currently, you can take this up. |
Hello @dikwickley, can you please explain why I am encountering the same error twice? Will you please explain the if there is any reason behind this? |
hey @dikwickley I am interested in working on issues, I have set up locally for now. I kindly request you to assign me this issue. |
started working on the issue @dikwickley @garg3133 |
|
@Ayush-Vish I have, but as you can see, the format of error message in your PR is not same as what I shared above (no |
Ok I'll fix it as Quickly as Possible thanks. |
@garg3133 I've just pushed the changes for the fix described above. Please review the PR at your earliest convenience. |
@garg3133 @dikwickley |
@garg3133 Please Review My PR, I have done all the required changes. |
hey assign these issue to me and I will resolve these |
Description of the bug/issue
When
.find()
command is chained and it fails to resolve any element, it throws anTimeoutError
instead ofNoSuchElementError
.Branched off from issue: #3991
Reference comment: #3991 (comment)
Sample test
Just use
browser.element.find('.invalid_selector');
in any Nightwatch example test and run the test.Potential solution
We'd probably need to check if the error thrown by the
.find()
command is a timeout error and if so, change the error name accordingly.After the fix, instead of a timeout error, we should get an error in the following format when Nightwatch is unable to find an element:
Nightwatch.js Version
3.3.7
The text was updated successfully, but these errors were encountered: