Forum Discussion

kinsleyd's avatar
kinsleyd
Contributor
15 years ago

Searching for text

I'm searching for an effecient way to look at the loaded page and search for some text, specifically the text one can expect if the page returns a javascript error or finds no matching documents, which the developers have made global.  The trouble is I can not predict exactly where it'll be on the page.  I've tried using an if .... exists  statement, but then I get a bunch of errors as its trying to find the frame I typically see the text appearing in which isn't there if the page does load/present documents properly, if that makes sense.  My next thought was FindAllChildren, but then I'd find myself looking at an array, which I guess is possible, but seems cludgey somehow.  Any thoughts?



TIA - Dave



Got the findallchildren logic working, but still seems cludgey

37 Replies