Hi,
I’m using the 5.0.0 beta simply because im really interested in using these apis:
findElementsByIosNsPredicate
findElementByIosNsPredicate
Currently I cannot figure out what string I should use to get it to work.
here are some attempts trying to access a button with the id: button_cart on the navigationbar:
None of these strings work for me.
The button is accessible as getElement(By.id(“button_cart”) does return the correct element.
Help me out please?
String test1 = “XCUIApplication()”;
String test2 = “XCUIApplication().navigationBar”;
String test3 = “XCUIApplication().navigationBar.buttons[“button_cart”]”;
String test4 = “.navigationBar.buttons[“button_cart”]”;
String test5 = “navigationBar.childrenMatchingType(.Button, identifier: “button_cart”)”;
String test6 = “label equals ‘button_cart’”;
String test7 = “identifier equals ‘button_cart’”;
System.out.println(driver.findElementsByIosNsPredicate(test1));
System.out.println(driver.findElementsByIosNsPredicate(test2));
System.out.println(driver.findElementsByIosNsPredicate(test3));
…