chenglou / node-huxley

Codeless front-end testing.
MIT License
361 stars 29 forks source link

Chrome doesn't put the cursor at the right place when clicking on an input #43

Open chenglou opened 10 years ago

chenglou commented 10 years ago

Known issue. Noted here: https://github.com/chenglou/node-huxley/blob/bb8f1f2a84bdab69388dbd6089d42545362a1ea0/playback.js#L67

chenglou commented 10 years ago

One way to solve this is to revamp the whole input paradigm: instead of tracking the letters, the cursor position, the backspace keys and whatever, simply store the whole text each time and during playback, reset to that. This will also solve whatever copy pasting issue and all.