Selenium-Revision
What is Parent Child in Xpath…? Ex1: //div[@class='abc']/div/div[2]/input Ex where to use parent child… Assume a HTML tag does not contains any attributes(ex: name or class or id) to identify in such cases user has to use traverse method in xpath i.e parent child. Ex2: in Above example parent tag is continuing till child class. ' Where as in below example from the parent Tag its looking for child Tag, this I the another best example. //div[@id='glsctl00_mainContent_ddl_originStation1_CTNR'] //a[@value='MAA'] ChroPath is used in Chrome which same as like Firpath in Firefox. Difference between Relative and Absolute xpath.? Relative: Relative doesn't depend on the Parent class. Ex: //*[@name='q'] Absolute: Parent to child Ex: //div[@class='abc']/div/div[2]/input How to traverse to siblings elements using xpath. ? Ex: //div[@class='abc']/following-siblling::li[1] Sibling ex