Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. QA Testing
  3. Question
QA Testing

How can I write an XPath expression by using the “contain text”?

Asked by Crowny Hasegawa Apr 9, 2024 935 views 1 answer
Share

About this question

 I am currently engaged in a particular task that is related to automated testing of a web-based application by using the selenium WebDriver in Java programming language. In one of my test scenarios, I need to locate an element on the webpage that contains a specific test string within the text content. How can I write an XPath expression by using the ‘contain text’ keyword to find and interact with this element? 

Your answer

1 Answer

More QA Testing discussions

Learn & Explore

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

Latest QA Testing Blogs

Guides, tips and career advice on QA Testing from JanBask experts.