mherrmann/helium

Limit `find_all`'s scope to children of an Element?

Opened this issue · 0 comments

I want to do the following:

rows = find_all(S(".some-class"))
for row in rows:
    buttons = row.find_all(Button())
    # Do something with the row's buttons

I get all rows and then want to process all the buttons within a row.

What would be the correct syntax for this?
In Selenium you would be able to call row.find_elements(...) to get only buttons that are within the row, does Helium have an equivalent function?