Is there a possibility to find an element by ID with an wildcard? I have something like this:
stat = GC.FindElementByXPath("//*[@id='C29_W88_V90_V94_admin_status']").Value
stat = GC.FindElementByXPath("//*[@id='C26_W88_V90_V94_admin_status']").Value
stat = GC.FindElementByXPath("//*[@id='C29_W88_V12_V94_admin_status']").Value
The admin_status
part won't change but the values before.
Sometimes I have the same problem with another element with values around it. So the best thing would be to find the element with some wildcard like this:
stat = GC.FindElementByXPath("//*[@id='*admin_status*']").Value