I have recorded test cases in iOS 13.3 but some XPath created by recorder does not work in iOS 13.5.
For example:
I have UIPopOverController which has UITbleview and I have a test where I am selecting row in UITableView.
Recorder is generating following XPath
By.xpath("//XCUIElementTypeWindow[1]/XCUIElementTypeOther[2]/XCUIElementTypeOther[3]/XCUIElementTypeOther[2]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeTable[1]/XCUIElementTypeCell[1]/XCUIElementTypeStaticText[1]");
But I need to change to
By.xpath("//XCUIElementTypeStaticText[@label = âSecondary and belowâ]");
to make it work in iOS 13.5 but it work without change in iOS 13.3.
Itâs difficult to change all those instances across my test cases. I need to know what should be done to fix this, I donât want to modify my script.