SeleniumHQ / selenium-ide

Open Source record and playback test automation for the web.
https://selenium.dev/selenium-ide/
Apache License 2.0
2.73k stars 740 forks source link

Selenium IDE not recording keystrokes in input fields #1699

Closed karthikuj closed 6 months ago

karthikuj commented 10 months ago

🐛 Bug Report

Selenium IDE does not record keystrokes in input fields unless you click somewhere else after filling out the field. So, if you press enter after typing something in a search bar the the keystrokes won't be recorded.

To Reproduce

  1. Start IDE and open https://google.com/.
  2. Start recording.
  3. Enter something in search field and press enter.
  4. The keystrokes won't be recorded.

Expected behavior

  1. User will expect it to record the keystrokes even when they don't explicitly out focus the element.

Project file reproducing this issue (highly encouraged)

NA

Issues without a reproduction project are likely to stall.

Environment

OS: Linux Ubuntu 22.04 Selenium IDE Version: 4.0.0-alpha.46 Selenium SIDE Runner Version: Node version: Browser: Browser Version:

toddtarsi commented 9 months ago

@karthikuj - Just wanted to note, this is because the recorder appears to use the change event on inputs more than key down, so this command tends to wait until blur for fields.

islamuddin commented 8 months ago

@toddtarsi so keeping in view your above comment when we are clicking outside on end of typing input, recorder is recording that click command too along with type command. That is sometimes fails the testcase due to its random nature. How to avoid this happening?

toddtarsi commented 7 months ago

@karthikuj @islamuddin - I finally found this, sorry for the delay here. It came down to a record handler not operating in the capture phase. Sorry about that, x.58 is going out tonight and should resolve this. Happy holidays

karthikuj commented 7 months ago

Awesome :smile: Thank you!

toddtarsi commented 6 months ago

Closing this issue, as I believe this bug is resolved

github-actions[bot] commented 5 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.