Lookup parent element from child elements

You want to be able to lookup parent element from child elements. In the given scenario, which of the following can be used to locate web elements?

1. XPath

2. CSS selector

Options
  1. Only 1
  2. Only 2
  3. Both 1,2
  4. None of these

Related Posts

Close Bitnami banner
Bitnami