schickling/chromeless

Seeing erratic results when filling-in multiple fields using 'type'.

Opened this issue · 1 comments

When trying to login on a page, using email/username I'm getting erratic results which seem to relate to timing.

By taking a screenshot after the sequence of events complete I note that more often than not the first field isn't filled in completely. It seems that it takes time to fill in a field, and that before it's filled in the next 'type' command takes over.

Is this something that is a known issue?

I'm running into similar issues, both with multiple fields in succession and when there is some sort of field mask on the field. The type implementation seems to have a timing hole. The puppeteer implementation uses a lock with keydown and keyup instead of the "char" keyevent.

That's probably the correct implementation, but swapping the "char" event with "keydown" solved my issues