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

I am using AppiumLibrary in Robot Framework. There is a keyword Input Text to put the text in the edit text box. Input Text Keyword clears the existing text and starts writing the text from the starting coordinates. Now my question is, is it possible to write the text from a particular coordinates or append text to the existing text?

Upvotes: 0

Views: 1680

Answers (1)

AutoTester213
AutoTester213

Reputation: 2872

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

Upvotes: 0

Related Questions