# Issue with inputting text in a text box

**URL:** <https://forum.robotframework.org/t/issue-with-inputting-text-in-a-text-box/513>\
**Category:** Robot Framework\
**Created:** [24 July 2020 04:14 UTC](https://forum.robotframework.org/t/issue-with-inputting-text-in-a-text-box/513 "2020-07-24T04:14:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Indher](https://avatars.discourse-cdn.com/v4/letter/i/45deac/32.png) [@Indher](https://forum.robotframework.org/u/Indher)\
**Post date:** [24 July 2020 04:14 UTC](https://forum.robotframework.org/t/issue-with-inputting-text-in-a-text-box/513/1 "2020-07-24T04:14:20Z")

</div>

I am facing issue with typing text using an Input Text Method in text box. when I run my robot script it is taking focus to the middle or last line of the text box. When I use Set Focus to Element method it set focus to the 1st character. Has any one face this, kindly suggest me how to over come this issue.

```python
set focus to element ${INPUT_POSTAL_CODE} ------ Set focus to start of element

input text ${INPUT_POSTAL_CODE} ${UserData.PostalCode} ----- Set focus to middle/end of element

```

![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/1X/436bff535b6b350fd55fd1d411abcb7a278ad8f3.png)

I have been using ID for locator.

DOM

---

<div class="post-metadata">

**Author:** ![testventure](https://avatars.discourse-cdn.com/v4/letter/t/a9adbd/32.png) [@testventure](https://forum.robotframework.org/u/testventure)\
**Post date:** [4 September 2020 16:23 UTC](https://forum.robotframework.org/t/issue-with-inputting-text-in-a-text-box/513/2 "2020-09-04T16:23:25Z")

</div>

Is it a regular element? Or is it some kind of content-editable element? I recently had to deal with a content-editable box and had a similar issue where the cursor would be in the middle. I had to add a press of the home or end key to make sure I was in the right spot.
