Xpath Function OR & AND
Xpaths OR & AND:-
In case of OR if any of the attribute value matches, the element will be located, whereas in case of AND both the attribute value should match and met, then only the element will be located.
Example 1: Xpath= //input[@type= 'email' or @name= 'email']
Example 2: Xpath= //input[@type= 'email' and @name= 'email']