After logging into my bank they always display some advertisement before showing me my accounts. In general, what are some good ways to verify I'm on the right web page before tabbing or clicking around?
I already have some scripting that looks for the words "No Thanks", and clicks it, if it exists. Because "No Thanks" is a pretty common button on the ad page. But sometimes they have other buttons instead, like "Remind me later" or "Drop dead" or whatever. So I want an additional check that looks for what SHOULD be there before continuing.
I could just continue looking for specific words, like the phrase "Primary Account" or whatever. But instead I though I might look for specific controls that exist on the accounts page. However, in order to define a control into a variable, it has to EXIST at least once. I see no way to save a control variable for long-term use, like if this runs automatically every weekend.
I hope this question makes sense. My scripts are years old and I have only recently come back to it. So I'm rusty.
Edit: There is another compelling reason for looking for new ways to verify you've landed on the correct web page. On some pages my searching for certain text does not work. A good example is Gmail.com. Let's say I log in and search for the word "Compose" or "Primary". Those are prominent words near the top of the page. The behavior I hope for is that after <control>f, compose, <escape>, and that word "compose" remains highlighted. That way I can copy to clipboard and test for the word. If it's present, I'm likely on the right page. But on many web pages certain words do not remain highlighted. On Gmail almost nothing will. To see the difference do <control>a to highlight all. Notice very little is highlighted. What is a better test?