Applescript to find text on a webpage

AS newbie here :slight_smile:

I’m looking for code to find and if it exists then click on the text of a webpage.

Doing the clicking etc is not a problems but I cannot fathom out how to search for the given text. What I’m looking for is (rough) help with:

start loop
Click on {xxx, yyy}
Find text on page starting/containing “20110”
If text exists then click on it and perform actions otherwise rerun loop

The webpage in question using MS Ajax.

Thank you for any assistance you can give me :slight_smile:

Given that you are doing clicks then you could keystroke “f” using command down to do a find

A better solution would be to parse the website and then find out if the information exists then use javascript to do the clicking. or you could even try cUrl