Appium iOS: UIAPickerWheel select value with Appium

Last updated on:

// click on the field
		driver.findElement(By.xpath("//UIAApplication[1]/UIAWindow[1]/UIATextField[3]")).click();
// create an element with UIAPickerWheel
		WebElement gender = driver.findElement(By.xpath("//UIAApplication[1]/UIAWindow[2]/UIAPicker[1]/UIAPickerWheel[1]"));
// get values of the element
		gender.getAttribute("values");
// set value to the specific
		gender.sendKeys("Male");
View Comments

Leave a Comment

Use markdown or basic HTML and be nice.