1.  Contains :- If you want to check that element is present in Web page or Not
Syntax //*[contains(text(),'Enter your text ')]
Example //*[contains(text(),'Try-It-Yourself!')]
Example 2 :-
Syntax //*[contains(text(),'Enter your text ')]
Example //*[contains(text(),'Try-It-Yourself!')]
2. Following-sibling :- If we want to find element of sibling element 
          Syntax : - //*[@id=' Element name '] /following-sibling::div/span
Example :- 
Post a Comment
Post a Comment