xpath‐child - daniel-qa/Web_UI_Test GitHub Wiki
child
#3) Child
Agenda: To identify the child of context node “Mammal”.
XPath#1: //div[@class=’Mammal’]/child::div

XPath#1 helps to identify all the children of context node “Mammal”. If you want to get the specific child element, please use XPath#2.
XPath#2:
//div[@class=’Mammal’]/child::div[@class=’Herbivore’]/h5
