Selects all the parent, grandparent, and so on of the element is related to which axis name in Selenium?

Options
- Ancestor
- Preceding
- Parent
- All of these.


CORRECT ANSWER : Ancestor

Discussion Board
Selenium

Answer: Ancestor

Solution: Ancestor: selects all elements of parent node, grandparent node and all other nodes of the system.

Preceding: It contains all the nodes those are already occur in context or system.

Parent: It only contains the parent node of context or system.

Therefore, ancestor is the correct answer.


Rohit Srivastava 07-28-2014 05:06 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement