DSmachineWorld
7 days agoContributor
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. Can I script a test in Python?
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)