HENNGE / arsenic

Async WebDriver implementation for asyncio and asyncio-compatible frameworks
Other
350 stars 53 forks source link

How to get nested element? #55

Closed Edvard-D closed 5 years ago

Edvard-D commented 5 years ago

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?

ojii commented 5 years ago

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

Edvard-D commented 5 years ago

Thanks!