Not able to fill in XCUIElementTypeSearchField

Hello,

I perform iphone tests with Appium using Xcode (real device)

When typing in a XCUIElementTypeTextView type field it works but not in a XCUIElementTypeSearchField type field

Is this normal?

How can I do ?

Thank you for your help.

Regards.

Hello,

I have the same issue with Android : not able to fill in search_box_text

Regards.

Hello Maialen,

You can use “element.sendKeys(Keys.ENTER)” to first get the focus into your search box.
Or directly use “element.sendKeys(“Your search text”)”.

Or there is another option you can use is TouchAction class and pass the screen coordinates to it just to get the focus into your search box for this approach you will only need the screen coordinates of your element.

Hello,

Thank you for your help, I will test this solution.