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

[NODRIVER] Search element by element #2000

Open
FRIKIdelTO opened this issue Aug 31, 2024 · 2 comments
Open

[NODRIVER] Search element by element #2000

FRIKIdelTO opened this issue Aug 31, 2024 · 2 comments

Comments

@FRIKIdelTO
Copy link

With nodriver how can I search for an element inside another element like in selenium? elements don't have find() or select() methods
Example in selenium:
element = driver.find("span")
element2 = element.find("div[role='whatever']")

I can't do this in nodriver and I can't access element2 directly. I need to do it like this.

@devblack
Copy link

elements have query_selector

@FRIKIdelTO
Copy link
Author

elements have query_selector

that's right! Thanks. I didn't see it

Maybe it would be a better idea to call the methods that do the same thing in Selenium in the same way so that the transition is as smooth as possible... just like with send_keys() for example

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

2 participants