Is there a way to check for existence of an html element on a webpage?
I have a script that clicks a link on a webpage and based on the status of a given order, the website returns different webpages (with different names) and different url's that I want to click next.
What I need to figure out in my script is which of the dynamically generated webpages has loaded (need to check for existence of a window that has a webpage whose name begins with lets say "status" or "error" or "completed" and inside the page I need to check if the page provides a specific url link that I can have my script click on - if it exists, I would have the script click on the link.
Any suggestions?