Reputation: 145
I am having a test case that one of its steps is to activate the typing cursor on a text field then write on that field.
I use "type" command to type but I can't figure out how to activate the typing cursor on that field.
Please help me, it is very important.
Upvotes: 0
Views: 1320
Reputation: 11
I had an encounter with similar need. In my case after typing in the field, field mask supposed to be applied, but it doesn't react on selenium type
. focus
and sendKeys
helped me here.
Upvotes: 1
Reputation: 793
Can you please show us the code from selenium ide you're using? Is the field you want to type in an angular field? Is the field "there" before you run the type command? You might try a "waitforelementpresent" command on the field id first.
Also, if the field is an angular field, I've found that when testing angular, I have to use sendkeys instead of type.
Klendathu
Upvotes: 0