Back to Browse

72. Relative XPath Expressions - Part 5 - Pipe and or operators (Selenium Java 2026)

59 views
May 11, 2026
13:20

Relative XPath Expressions - Part 5 Pipe operator / OR operator Write a single XPath expression for locating a text area field and a text box field: //textarea[@id='ta1'] | //input[@name='q'] Write a single XPath expression for locating two different hyperlinks: //a[@id='selenium143'] | //a[@id='link1'] OR //a[@id='selenium143' or @id='link1']

Download

0 formats

No download links available.

72. Relative XPath Expressions - Part 5 - Pipe and or operators (Selenium Java 2026) | NatokHD