# Unable to input text into some text fields

**URL:** <https://forum.robotframework.org/t/unable-to-input-text-into-some-text-fields/3129>\
**Category:** SeleniumLibrary\
**Created:** [21 January 2022 11:03 UTC](https://forum.robotframework.org/t/unable-to-input-text-into-some-text-fields/3129 "2022-01-21T11:03:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RF\_Selenium\_Tester](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@RF\_Selenium\_Tester](https://forum.robotframework.org/u/RF_Selenium_Tester)\
**Post date:** [21 January 2022 11:03 UTC](https://forum.robotframework.org/t/unable-to-input-text-into-some-text-fields/3129/1 "2022-01-21T11:03:41Z")

</div>

Hi,

Often i find myself struggling with certain text fields. I’m able to click this element but i’m unable to use “input text” keyword on this text field. I keep getting Invalid element state exception.

I’ve tried clicking the element first and then using input text but it doesn’t work.

 ![IMG_20220121_162927](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/d/dc9195962956c20c80c5b4786c7b92583b5ec900.jpeg)

Can someone help???

---

<div class="post-metadata">

**Author:** ![janipalsamaki](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/janipalsamaki/32/154_2.png) [@janipalsamaki](https://forum.robotframework.org/u/janipalsamaki)\
**Post date:** [21 January 2022 11:08 UTC](https://forum.robotframework.org/t/unable-to-input-text-into-some-text-fields/3129/2 "2022-01-21T11:08:34Z")

</div>

Hi! Can you paste the HTML markup as text?

Right-click the element → `Copy` → `Outer HTML`

Thanks!

---

<div class="post-metadata">

**Author:** ![RF\_Selenium\_Tester](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@RF\_Selenium\_Tester](https://forum.robotframework.org/u/RF_Selenium_Tester)\
**Post date:** [21 January 2022 11:20 UTC](https://forum.robotframework.org/t/unable-to-input-text-into-some-text-fields/3129/6 "2022-01-21T11:20:42Z")

</div>

Here it is:

input \_ngcontent-utg-c198="" type=“text” mask=“separator” thousandseparator="," class=“table-input ng-pristine ng-valid ng-star-inserted ng-touched”

Thanks.

---

<div class="post-metadata">

**Author:** ![janipalsamaki](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/janipalsamaki/32/154_2.png) [@janipalsamaki](https://forum.robotframework.org/u/janipalsamaki)\
**Post date:** [21 January 2022 11:53 UTC](https://forum.robotframework.org/t/unable-to-input-text-into-some-text-fields/3129/7 "2022-01-21T11:53:05Z")

</div>

Hmm. Nothing wrong or special about that markup. Need a bit more context to be able to help.

- Can you share your robot code where you try to input text?
- And also the part where you managed to successfully click the element?
- Also share the full error message. Thanks!

---

<div class="post-metadata">

**Author:** ![markst33](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/markst33/32/1561_2.png) [@markst33](https://forum.robotframework.org/u/markst33)\
**Post date:** [31 May 2022 15:04 UTC](https://forum.robotframework.org/t/unable-to-input-text-into-some-text-fields/3129/8 "2022-05-31T15:04:52Z")

</div>

I am also having this issue where I am getting the following error message :  
InvalidElementStateException: Message: Unable to clear element that cannot be edited

I am trying to enter text into a field with this selector - css=#ycptcpt

I know that the selector is working because I have click element beforehand to see if RF can access it and I can see the cursor appear and blink.

But its failing at this step - input text css=#ycptcpt test  
with that error message

---

<div class="post-metadata">

**Author:** ![markst33](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/markst33/32/1561_2.png) [@markst33](https://forum.robotframework.org/u/markst33)\
**Post date:** [1 June 2022 11:06 UTC](https://forum.robotframework.org/t/unable-to-input-text-into-some-text-fields/3129/9 "2022-06-01T11:06:15Z")

</div>

Found the solution. The selector was a div so naturally I was unable to enter text. I drilled down further and found this selector to use -

input text xpath=//form[@id=‘f’]//input[@name=‘login’] ${Email}
