Forum Discussion

DSmachineWorld's avatar
DSmachineWorld
Contributor
10 days ago
Solved

Way to map dynamic button (Web)

I have a button which is identified in the web application by taking the first letter of the first name and the first letter of the second name. I don't think xPath will work to try and do a regex. ...
  • scot1967's avatar
    10 days ago

    Python and regex should work as well.  It will likely require a

    buttons = page.FindAllChildren("ObjectType", "Button", 10)

    and then a loop through the found buttons against a regex pattern to retrieve the target button. 

    P.S.  (This could be slow and brittle depending on search depth and page structure / naming)