Robot Framework Appium Library : Input Text from certain Coordinates or Append text to the Existing text?

1.5k Views Asked by At

I am using RobotFramework-appium Library. There is a keyword "Input Text" to put the the text in edit text box. "Input Text" Keyword clears the existing text and starts writing the text from starting coordinates. Now my question is, Is it possible to write the text from a particular coordinates or Append text to the existing text?

1

There are 1 best solutions below

2
On

You could get the text value from the text box using the Collections library:

*** Settings ***
Library Collections

*** Keywords ****

Append Value in Text Box
  @{list}=  create list

  ${get_text}=  Get Text  id=textbox
  append to list  ${list}  ${get_text}
  ${my_text}=  InputForTextBox
  append to list  ${list}  ${my_text}
  Input Text  id=textbox   ${list}

More on collections library here