Happy holidays and Merry Christmas to everyone!
I'm continuing to explore UIA and finally getting the hang of it, in huge part to the great insight shared by
@Descolada Thank you!
Code: Select all
activebrowser.WaitElementExistByNameAndType(team, "HyperLink",, "RegEx").click()
I've hit a new interesting snag... I want to click the item which contains the string stored in the value 'team'. This works great UNLESS the element doesn't exist.
Is there a way, does anyone know, to use RegEx to see if a variable in included in a Control (Hyperlink) in this case BUT not Wait?
My issue is my script hangs/waits at this point expectantly, but sometimes the element doesn't exist (which is fine).
Ive tried added try {} and catch {} but it doesn't 'error' per se, it just does what it says it should ... Wait..and wait... and wait
I hope that makes sense. Can I use another UIA command which doesn't include Wait, to do a similar RegEx match against a string variable contained in a HyperLink control?
Many thanks
R