G'day.
1. I've managed to programatically fill the find field (command f) of a Safari page - but I have no clue how to obtain/read the results of it.
Essentially, I want to search for a string. If result>0 do this, else.. do nothing.
I did attempt to use Source of Document but it kept returning 'cannot read source' error
Any suggestions?
2. I have a script which loops about every 20 or 30 seconds (using Delay and Return) and sometimes it times out - how can such an error be avoided?
TIA.
1. I've managed to programatically fill the find field (command f) of a Safari page - but I have no clue how to obtain/read the results of it.
Essentially, I want to search for a string. If result>0 do this, else.. do nothing.
I did attempt to use Source of Document but it kept returning 'cannot read source' error
Any suggestions?
2. I have a script which loops about every 20 or 30 seconds (using Delay and Return) and sometimes it times out - how can such an error be avoided?
TIA.