XQuery Question:

Download Job Interview Questions and Answers PDF

How can I check if a web page contains specific text?

XQuery Interview Question
XQuery Interview Question

Answer:

You can obtain the page’s text using the document.body.innerText property and search for the desired text in it. For more information and code examples, see the “Checking if a Page Contains Specific Text” help topic.

Download XQuery Interview Questions And Answers PDF

Previous QuestionNext Question
How can I find a specific image within a web page?How can I find a web page element that contains specific text?