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

How to get nested element? #55

Closed
Edvard-D opened this issue Jan 31, 2019 · 2 comments
Closed

How to get nested element? #55

Edvard-D opened this issue Jan 31, 2019 · 2 comments

Comments

@Edvard-D
Copy link

I have a case where there's an outer container element containing an inner link element. I need to click the link of a specific container element. It's possible to find the right container element using a "data-id" value assigned to each container, but the link doesn't have the data-id value. Is there any way to get the link element within the container element?

@Edvard-D Edvard-D changed the title How to get subelement of an element? How to get nested element? Jan 31, 2019
@ojii
Copy link
Contributor

ojii commented Feb 1, 2019

elements are selected by CSS selectors, so something like [data-id=YOURID] a could work.

@ojii ojii closed this as completed Feb 1, 2019
@Edvard-D
Copy link
Author

Edvard-D commented Feb 4, 2019

Thanks!

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