Input Value keyword from Appiumlibrary example using Robotframework

Could anyone give me an example of Input Value keyword usage?
Im using this format:

Input Value //XCUIElementTypeTextField[@index="3"] subscriberid

and im getting the following exception:

InvalidArgumentException: Message: The following required parameter is missing: ["text"]
Known required parameters are: ["text"]
You have provided: ["id","value"]

Any idea about the correct format?

The documentation says it is an iOS only keyword. There is other one with the same function, which is Input Text.


Input Value

You can try to explicitly pass the named argument:

Input Value    //XCUIElementTypeTextField[@index="3"]    text=subscriberid

Hello,
I used Input Text until i upgrade my iPhone 12 (real device) to iOS 18.0. Through Quicktime player i can see from the case execution that robot types the text exactly at the text field but when im moving to the next screen the result isnt the expected. If im going to type it manually through my keyboard then all fine. Thats why i want to try through Input Value keyword.
I tried this syntax:
Input Value //XCUIElementTypeTextField[@index="3"] text=subscriberid
but the exception message was the same. Also note that from the Appium inspector there are no ‘text’ attribute available.

I can only think that subscriberid is being interpreted as a Python variable. (maybe you used some real text, then just ignore what I’ve written).

Maybe the actual XCUITEST command had changed for that version, and AppiumLibrary is not updated to it.

You could try to use XCode/XCUITEST (whatever iOS tool exist for testing) to simulate that input.

Other experience, would be to:

  • activate the input element
  • open the iPhone keyboard
  • type the content

(I really don’t know how or if possible)

Finally, as a last resort, make your test semi-automated, by adding a pause, and input the content manually, so other steps could proceed.