I am able to type in text using the below robot keyword.
input text //*[@id=“textInput”] Hello
Now I need to press Enter key after this. For this I am trying with different keywords such as
Press Keycode 13
but none of them is working.
Can anyone help how to fix this please.
You didn’t say but from this i’m guessing your using the SeleniumLibrary?
If my guess is correct why not just use Press Keys?
Press Keys //*[@id=“textInput”] RETURN # Pressing "ENTER" key to element.
Hi @damies13 ,
Following are the libraries that I am using:
*** Settings ***
Library AppiumLibrary 10
Library PerfectoLibrary RobotframeworkPerfectoBrowserDemoProject v1.0 RobotframeworkPerfectoBrowserDemoJob 1
From the AppiumLibrary, it looks like all you should need to do for pressing the enter key is:
Press Keycode KEYCODE_ENTER
I’ve never used these libraries before so i’m afraid I can’t give much more help than reading the documentation.