If I want to tap on a certain iOS button, should I get a WebElement object from its xpath and invoke the click() method on it, or should I use driver.tap() method to tap a specific x/y coordinate?
i.e. Should I do this:
WebElement button = driver.findElement(By.xpath("//UIAApplication[1]/UIAWindow[1]/UIATableView[1]/UIATableCell[1]"));
button.click();
or this:
driver.tap(1,134,526,1);
created
Sep '14
last reply
Dec '16
- 28
replies
- 50.3k
views
- 19
users
- 18
likes
- 2
links