Typing something in a <input type='text'> using FuncUnit "type" but it is not working

#1

I am trying to type something in a input textbox using type function but its not working.

In my page under test there is textbox:

In my FuncUnit test I am trying to type something in this textbox using “type” but its not working:
F(‘txtbox’).type(‘abc’);

Can somebody please help me with this. I don’t understand what am I doing wrong.
I tried using sendKeys as well but still not working.

#2

I think your code should be something like (notice the #):

F('#txtbox').type('abc');

Here’s an example: https://codepen.io/bitovi/pen/NmoyLL

#3

Sorry there was a typo in my question, I meant F(’#txtbox’).type(‘abc’).