Detecting Web Page open by Wildcard

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
TomS
Newbie
Posts: 8
Joined: Tue Apr 28, 2015 3:10 pm

Detecting Web Page open by Wildcard

Post by TomS » Mon Nov 23, 2015 4:48 pm

Hello,

I am using IETagEventByAttrib to detect if a web page has been opened. This works if I have the exact URL name.

The web page I am looking for has a version number in the URL, so it may change. Is there a way to detect the URL with a wild card?

Example URL that works: https://www.abcdef.com/1.004/

Is there a way to detect the URL like this? https://www.abcdef/*/

Thanks,
Tom

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Detecting Web Page open by Wildcard

Post by Marcus Tettmar » Tue Nov 24, 2015 11:54 am

IETagEventByAttrib and the other functions only need a substring - not a full URL. So you can just use www.abcdef.com/ and it will match the first IE tab open at that domain. If there isn't any IE window open at that domain then you'd get an error, so you could trap that to detect whether or not it's open. But if the reason you are asking you want to detect it is so that you can interact with it, you won't need to do that, just specify abcdef.com and carry on ....
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts