Skip to content

Add click_visible_elements(selector) method

Compare
Choose a tag to compare
@mdmintz mdmintz released this 02 Dec 01:08
· 7283 commits to master since this release
2bf4a78

Add click_visible_elements(selector) method

Finds all matching page elements and clicks visible ones in order.
If a click reloads or opens a new page, the clicking will stop.
Works best for actions such as clicking all checkboxes on a page.

Example:

self.click_visible_elements('input[type="checkbox"]')