Selenium IDE typeKeys missing dot, period, or decimal
1I discovered a bug in the Selenium IDE today where I needed to use the typeKeys command and the value included a period. The period would be stripped out for some reason. The solution is to break the command into two separate commands. First, use the “type” command and include the period or dot in the value (nick@gmail.). Then, create another command on the same input and use the “typeKeys” command to add the rest of the value (com).
Hi I'm Nick Bartlett and thanks for visiting my blog. I'm not much of a writer; many of my posts are short and to the point while others are meant to be a reference for myself and other web developers.
We had similar problems using type_keys in selenium python.
One workaround we figured to resolve this issue is to use the combination of ‘type’ and ‘type_keys’. As you might be aware, type does not have such issues.
We did this in our selenium python script and it works just fine.
For example:
If there’s an email address to be entered in a text box: test.me@test.me.uk
Then do
type(locator,’test.me@test.me.’)
Follow it up with:
type_keys(locator,’uk’)
Maybe a very crude way to do, but it did the job.
Hope this helps someone else with a similar problem.