-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add aliases for find()
and findAll()
command in new Element API
#4057
Comments
The two sections of commands above ( |
Hey, @garg3133 can take up this issue? |
Hi, please go through GSoC Contributor Guidance for Nightwatch. It contains details on how the issues will be assigned. |
Hey @garg3133 I have a question that let us suppose the |
@subhajit20 No, |
Then |
@subhajit20 Yes, all the commands that are written together in the issue description are supposed to be aliases of each other. |
Okay Got it. |
Hey @garg3133 can you check my PR once and let me know if any further changes are needed? |
can you assign me this issue? |
@garg3133 can you assign this to me? |
@garg3133 can you please review my PR? |
Hi @garg3133 just curious if this issue is still open because there are so many PRs open so far. If not I am willing to work on this one! |
@AritraLeo Yes, this issue is still open and we still don't have a PR that solves this issue completely, although #4067 is quite close but there are still a few things missing from there. |
Ohk I'll start working on it and come up with a PR soon ! |
@garg3133 so far I have added declarations for get and getAll() and findElement and findElements in
this simple test but it seems even find is not working properly. Please correct me so that I can run the tests successfully! |
@AritraLeo |
Ohk, I see my bad apologies for the oversight. |
@garg3133 Please have a look at my PR ! |
could i start working on this issue or this issue is already closed |
hey assign these issue to me and I will resolve these |
In order to discourage duplicate PRs on an issue, assigning this issue to @AritraLeo since their PR #4130 is under active development and also very close to the solution. Moving forward, we will only be reviewing PRs from the person to whom the issue is assigned. |
Hey @AritraLeo could you pls share current status of this issue ? because upon following your and @garg3133 conversation it's too much clear in my head. |
Yeah! I think that it is solved but I just asked if any task remaining then I could help. |
Fixed in #4130. |
Description of the issue
The following APIs should work in the new Element API:
Commands to find a single element:
browser.element.find('selector')
browser.element.get('selector')
browser.element.findElement('selector')
browser.element('selector').find('child-selector')
browser.element('selector').get('child-selector')
browser.element('selector').findElement('child-selector')
Commands to find multiple elements:
browser.element.findAll('selector')
browser.element.getAll('selector')
browser.element.findElements('selector')
browser.element('selector').findAll('child-selector')
browser.element('selector').getAll('child-selector')
browser.element('selector').findElements('child-selector')
The main commands above are
find()
andfindAll()
(for which corresponding files are present inlib/api/web-element/commands
directory) and all others are the aliases of these two commands.Some of the aliases above already exist while others don't, so we need to make sure that all of the above commands work in both JS and TS (with correct typings).
TODO
The text was updated successfully, but these errors were encountered: