Skip to content

clickSelector only clicks first element found #1391

@JelleBouwmans

Description

@JelleBouwmans

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions