-
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
Element API sends further HTTP requests in failed chained commands #4077
Comments
@dikwickley can you assign this to me? |
Sure @Chamara00, please free to investigate the issue and propose a solution here. If the solution looks good or close enough, we'll assign the issue to you. |
@garg3133 @dikwickley My proposed solution
sampe code
|
@dikwickley @garg3133 please can you me a feedback for my solution. If it's good assign this issue to me |
@Chamara00 could raise a PR with that solution? I am little skeptical if the above approach would work |
Hey, Please review my PR @garg3133 @gravityvi #4088 |
I have tried to solve this issue but unable to solve it but I got something, take it as a pinch of salt.
Moreover, I think working on |
can you share the file path |
It actually passes a
@uditrajput03 What do you mean by this? When await browser.element('.invalid_selector').getText(); // getText shouldn't run here for any value of `abortOnFailure`
await browser.getTitle(); // should continue executing in case `abortOnFailure` is set to `false`. |
Got it now , Thanks |
Description of the bug/issue
Further chained commands in the new element API sends HTTP request even when preceding command has failed.
sample test
Branched off from issue: #3991
Reference comment: #3991 (comment)
Potential Solution
If the previous element is
null
, we should not send any further HTTP requests for the subsequent chained commands. Notice in the image above we are hitting/element/null/...
endpoint, that should not happen.Nightwatch.js Version
3.3.7
Node Version
No response
Browser
No response
Operating System
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: