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

Limit find_all's scope to children of an Element? #99

Open
CallMeHein opened this issue Feb 3, 2023 · 0 comments
Open

Limit find_all's scope to children of an Element? #99

CallMeHein opened this issue Feb 3, 2023 · 0 comments

Comments

@CallMeHein
Copy link

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?

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