XQuery Question:

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

Tweet Share WhatsApp

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 PDF Read All 41 XQuery Questions
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?