The tab items Home and Patients are not identified as shown in below figure in non instrumented mode (Picture1), However they are identified in Instrumented mode Instrument Checkbox is checked,(Picture 2)
But when I copy the xpath from Instrumented mode and put it in the code at run time it doesnot identify the control.
I have also used this code, -
- dc.SetCapability(“instrumentApp”, true);
This is when Instrumented checkbox is unchecked.
This is when Instrumented checkbox is checked.
The issue is when I try to take the xpath, from second screenshot that is in instrumented mode, It doesnot identify.
I have the code in Visual studio C#
driver.FindElements(By.XPath(“xpath=//*[@text=Patients]”));