Is it just a matter of making code that searches for a general enough RXpath that as long the element you're searching for stays at the same level of the element tree, you will find it?
For example, make a path like:
Code: Select all
form///button
Suppose initially the button is located at:
Code: Select all
form/container/container['x']/button
Code: Select all
form/container/container['y']/button
What if the level of the element tree in which the GUI element you're searching resides changes?
For example, instead of
Code: Select all
form/container/container['x']/button
Code: Select all
form/container/button
Is this a good way to do it? Would an image based search be a better solution?