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

Click on multi element/multi choice #40

Open
juliensz opened this issue Oct 7, 2019 · 2 comments
Open

Click on multi element/multi choice #40

juliensz opened this issue Oct 7, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@juliensz
Copy link
Collaborator

juliensz commented Oct 7, 2019

I think that multi click on elements of a list can be nice, example:

let elems;
try{
    elems = await $$('{{Variable}}');
    if (elems){
        elems.forEach(elem => elem.click());
    }
}
catch (e) {
}
@juliensz juliensz added the enhancement New feature or request label Oct 7, 2019
@vptes1
Copy link
Collaborator

vptes1 commented Oct 8, 2019

In other words, this? (I want the exception to get thrown if the element(s) aren't found)

* Click each {{element}} {
    let elems = await $$(element);
    elems.forEach(elem => elem.click());
}
Click each 'item in list'

@juliensz
Copy link
Collaborator Author

juliensz commented Oct 9, 2019

Yeah that's it without exception it can do it

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

No branches or pull requests

2 participants