# Unable to press enter on a input field text in a web application on a mobile browser present in Perfecto device using Robot Framework

**URL:** <https://forum.robotframework.org/t/unable-to-press-enter-on-a-input-field-text-in-a-web-application-on-a-mobile-browser-present-in-perfecto-device-using-robot-framework/2261>\
**Category:** Robot Framework\
**Created:** [12 August 2021 05:21 UTC](https://forum.robotframework.org/t/unable-to-press-enter-on-a-input-field-text-in-a-web-application-on-a-mobile-browser-present-in-perfecto-device-using-robot-framework/2261 "2021-08-12T05:21:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sayom88](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/sayom88/32/936_2.png) [@sayom88](https://forum.robotframework.org/u/sayom88)\
**Post date:** [12 August 2021 05:21 UTC](https://forum.robotframework.org/t/unable-to-press-enter-on-a-input-field-text-in-a-web-application-on-a-mobile-browser-present-in-perfecto-device-using-robot-framework/2261/1 "2021-08-12T05:21:29Z")

</div>

Hello Team,

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  
or  
Tap //\*[@id=“textInput”]

but none of them is working.

Can anyone help how to fix this please.

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [13 August 2021 01:09 UTC](https://forum.robotframework.org/t/unable-to-press-enter-on-a-input-field-text-in-a-web-application-on-a-mobile-browser-present-in-perfecto-device-using-robot-framework/2261/2 "2021-08-13T01:09:51Z")

</div>

Hi Sayom,

You didn’t say but from this i’m guessing your using the SeleniumLibrary?

> [@sayom88](#):
>
> input text //\*[@id=“textInput”] Hello

If my guess is correct why not just use [Press Keys](https://robotframework.org/SeleniumLibrary/SeleniumLibrary.html#Press%20Keys)?

```python
Press Keys	//*[@id=“textInput”]	RETURN # Pressing "ENTER" key to element.

```

Dave.

---

<div class="post-metadata">

**Author:** ![sayom88](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/sayom88/32/936_2.png) [@sayom88](https://forum.robotframework.org/u/sayom88)\
**Post date:** [13 August 2021 03:13 UTC](https://forum.robotframework.org/t/unable-to-press-enter-on-a-input-field-text-in-a-web-application-on-a-mobile-browser-present-in-perfecto-device-using-robot-framework/2261/3 "2021-08-13T03:13:18Z")

</div>

Hi @damies13 ,

Following are the libraries that I am using:

\*\*\* Settings \*\*\*  
Library AppiumLibrary 10  
Library PerfectoLibrary RobotframeworkPerfectoBrowserDemoProject v1.0 RobotframeworkPerfectoBrowserDemoJob 1

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [13 August 2021 12:47 UTC](https://forum.robotframework.org/t/unable-to-press-enter-on-a-input-field-text-in-a-web-application-on-a-mobile-browser-present-in-perfecto-device-using-robot-framework/2261/4 "2021-08-13T12:47:15Z")

</div>

Hi @sayom88,

From the AppiumLibrary, it looks like all you should need to do for pressing the enter key is:

```python
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.

Dave.
