Hey all, short question about xpaths here:
Say I have the following two xpaths i’m working with and I want to check if ONE of those exists. I know one of the will be there but this can swap be pretty random in the application i’m testing. So if we have the following code:
(def comment-box "/div[2]/ul")
(def picture-box "/div[3]/ul")
(wait-visible driver {:xpath comment-box})
OR
(wait-visible driver {:xpath picture-box})
What will happen here is that the first one might fail while the second one is actually there
Is it possible to use a solution like this: https://stackoverflow.com/questions/5350666/xpath-or-operator-for-different-nodes in Etaoin?
Or did someone else find a solution to a similar issue?