Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Cyber Security
  3. Question
Cyber Security

Explain xpath OR conditions.

Asked by Anil Mer Feb 11, 2022 358 views 1 answer
Share

About this question

 would like to find the Xpath, where the Text contains two names. I want my xpath to identify any one of the conditions below.

e.g

//div[text()='USER NAME' OR text()='USER ID']
or
//div[text()='USER NAME' | text()='USER ID']

The above two examples are not working. What can I do now? 


Your answer

1 Answer

More Cyber Security discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Cyber Security Blogs

Guides, tips and career advice on Cyber Security from JanBask experts.