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

clickSelector only clicks first element found #1391

Open
JelleBouwmans opened this issue Feb 7, 2022 · 1 comment
Open

clickSelector only clicks first element found #1391

JelleBouwmans opened this issue Feb 7, 2022 · 1 comment

Comments

@JelleBouwmans
Copy link

JelleBouwmans commented Feb 7, 2022

In clickAndHoverHelper.js the line await page.click(clickSelectorIndex); only clicks the first element found. It should click all elements found with the given selector.

Suggested fix:
for (var element of document.querySelectorAll(clickSelectorIndex)) { element.click(); }

This might also be the case for page.hover() and page.type() (keypress)

@JelleBouwmans
Copy link
Author

Created the following PR: #1392

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

No branches or pull requests

1 participant