Selenium IDE is not recording keystrokes in input fields

Open
#1,950 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
57/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
typescript
Domain
testing-qa

Research direction

Start by tracing Selenium IDE’s recording flow for text inputs and how it handles Enter-key form submission; the issue does not name specific files or tests. Reproduce the steps in Firefox, then identify where the input value is missed and check existing recording tests. Done means a recording includes the typed text and submit action even when Enter is pressed before blur.

Written by the indexing model from the issue text.

Description

Description

When recording a test script using Selenium IDE, typed text in an input field (such as a search bar) is not captured if the user submits the form directly by pressing the Enter key without first clicking out of the input box or shifting focus away (blur event). As a result, the type command is omitted entirely from the recorded steps, causing recorded test workflows to fail upon playback.


Steps to Reproduce
  1. Open Selenium IDE and start a new project recording.
  2. Navigate to https://www.google.com/ (or any site with a search/text input field).
  3. Click into the search input box and manually type a search query.
  4. Press the Enter key immediately to submit the form without clicking elsewhere on the page.
  5. Stop recording and check the generated command list.

Expected Behavior

Selenium IDE should listen for keyup/keydown or input change events and capture the typed input (type command) along with the submit action (sendKeys ${KEY_ENTER} or submit), regardless of whether an explicit blur/un-focus event occurred before submission.


Actual Behavior

The IDE fails to register the input value. The type command for the field is omitted from the recorded test steps, recording only the navigation or no action at all for the input step.


Reproduction Project File

No response (The issue is consistently reproducible via the steps listed above).


Environment
  • OS: Windows 11
  • Selenium IDE Version: 3.17.4
  • Browser: Mozilla Firefox
Dominant language
TypeScript
Stars
3.1k
Forks
823
Avg merge
3h 1m
Merged PRs (30d)
117

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SeleniumHQ/selenium-ide

All issues in SeleniumHQ/selenium-ide

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.