Forum Discussion
AlexKaras
Champion Level 3
Hi Dave,
Two more options:
a) Wildcards: e.g. var mainMenu = page.Find("idStr", "*MenuInner", 10, 1000);
b) Regular expressions: e.g. var mainMenu = page.Find("idStr", "regexp: (mainMenuInner)|(navMenuInner)", 10, 1000);
royd
8 years agoRegular Contributor
Hi Alex
Thanks for a very clever solution (at least simple enough for me to understand it!). :) I will definitely give it a try and let you know (I don't see why it won't work).
I never thought about using wild card, brilliant! Fortunately, there is only one instance MenuInner. Now I have three different solutions to the my problem, love it!! Also thanks for clarifying Find and FindChild issue, I will correct that.
Thanks to you both! :D
Related Content
- 10 years ago
- 5 years ago
- 5 years ago
Recent Discussions
- 10 hours ago
- 7 days ago
- 10 days ago