I have automated tests that run on a mobile device as well as on the desktop browser. Now I noticed the rxPath of elements are more or less the same. So, I thought rather than having seperate repositories I can use one repository for both requirements. My base folder for devices is as follows:
For desktop it is:
I don't want to replicate items in the folders so I tried adding a rooted folder like so:
/?[@domain=$Domain or @devicename=$DeviceName]
However, although it works, this is very slow in finding elements. Is there a better way?
Ask general questions here.
3 posts • Page 1 of 1
I think the problem is that you're actually making it an optional node by using the question mark. I think you want to use the asterisk instead./?[@domain=$Domain or @devicename=$DeviceName]
I have no idea if this is a good idea, but I think it will help you in your endeavor./*[@domain=$Domain or @devicename=$DeviceName]