When dealing with Xpath for the same object in two different portals, the paths can be:
//*[@id="abc"]/fieldset/div/div/div[1]/label
//*[@id="xyz"]/fieldset/div[1]/fieldset/div/div/div[1]/label
In order to use both values in the same key and have Selenium WebDriver find either one at runtime, I attempted the following but encountered issues:
//*[@id="abc"]/fieldset/div/div/div[1]/label) | //*[@id="xyz"]/fieldset/div[1]/fieldset/div/div/div[1]/label
//*[@id="abc"]/fieldset/div/div/div[1]/label) or //*[@id="xyz"]/fieldset/div[1]/fieldset/div/div/div[1]/label
I am seeking assistance on how to incorporate the 'or' pipeline function in this scenario.