Hi all,
I am new to appium and also to iOS platform, trying small code to click toggle button on settings app,
XPath taken from appium inspector : //XCUIElementTypeApplication[1]/XCUIElementTypeWindow[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeTable[1]/XCUIElementTypeCell[3]/XCUIElementTypeSwitch[1]
Predicate I have tried to access the element :
driver.findElementByIosUIAutomation(".tableViews()[0].cells()[2].switches()[0].withPredicate("name CONTAINS ‘Camera’ “)”).click();
I am able to toggle correctly with XPath but when I tried executing the predicate statement I got element not found exception.
Please guide me to code with predicate.
Thanks in advance.