I have a table cell element with a static text, like this:
[UIATableCell] Your height > [UIAStaticText] Your height
When I click on this table cell, there is a [UIAPicker] with 2 [UIAPickerWheel], one is number, one is "cm".
I want to set value for this table cell of height, so my code is below:
// enter height
iosDriver.findElement(By.xpath("//UIATableCell[1]")).click();
iosDriver.findElement(By.xpath("//UIAPickerWheel[1]")).sendKeys("178");
// click Done button to close the picker
iosDriver.findElement(By.xpath("//UIAToolbar[1]/UIAButton")).click();
It works with sendKeys, but the problem is that it's scrolled very slow until it reaches the value "178", so the test is slowed down if I want to enter a high number.
I tried with setValue from IOSElement, like this:
(IOSElement) iosDriver.findElement(By.xpath("//UIAPickerWheel[1]")).setValue("178");
it didn't really work: it entered number 178 outside of this table cell and kind of destroy the layout, and still opened the picker.
So I'd stick with sendKeys. Is there a way to make sendKeys faster or another way to enter value in this case. Thanks in advance