Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When typing in numeric fields, generates error 'Cannot set the selection end' #25

Open
vtamara opened this issue Aug 13, 2018 · 2 comments

Comments

@vtamara
Copy link

vtamara commented Aug 13, 2018

With @BlancaInesAcosta we prepared a simple example that shows the problem:
https://codepen.io/blancainesacosta/full/wxQBZB/
with the following sideex test case:

open               https://codepen.io/blancainesacosta/full/wxQBZB/ 
selectFrame        index=0
clickAt            id=name         66,10
type               id=name         thename
type               id=age          33

The following picture shows the sideex output

captura de pantalla de 2018-08-13 08-07-24

The problem occurrs in input fields with the attribute type='number'. We also have seen the same problem in fields with attribute type='email'

A workaround we have been using is to remove such attribute before the command type.
In this example it could be with:

runScript         document.getElementById("age").removeAttribute("type");

as the following picture presents:
captura de pantalla de 2018-08-13 08-39-16

@jcw778
Copy link

jcw778 commented Jan 13, 2019

Did you try removing .removeAttribute("type)"

@vtamara
Copy link
Author

vtamara commented Jan 18, 2019

The initial example doesn't have that, and it doesn't work.
I added .removeAttribute ... as a workaround to make it work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants