Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

What is the best way to determine if an element exist on the webpage?

Post Reply
User avatar
salvadordf
Posts: 4565
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: What is the best way to determine if an element exist on the webpage?

Post by salvadordf »

Search the node using JavaScript and send the result using a JavaScript extension

The JSRTTIExtension and JSExtension demos have a generic function called "myextension.sendresulttobrowser" to do that.

You can also use a DOM visitor to search for nodes. See the DOMVisitor demo.
Post Reply