Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

Request: new, enhanced "type"/"select" commands that trigger focus/change/blur events automatically #5451

Open
lukeis opened this issue Mar 4, 2016 · 3 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 4, 2016

Originally reported on Google Code with ID 5451

(Apologies if this has been requested/discussed previously.)

It appears that recording steps using the Selenium IDE does not trigger focus/change/blur
events on form fields, and these have to all be added manually with "fireEvent" (adding
quite a bit of extra work when creating tests on modern web apps).

Would it be possible to:
* Create more advanced type/select commands (rather than change existing ones and possibly
break existing tests) that automatically fire the focus/change/blur events (and perhaps
even keypress/keydown/keyup?)
* Make these new commands the default ones recorded when editing form fields

I could have a go at submitting a patch if others would find this useful.

Selenium version: 1.10.0
OS: Windows 7
Browser: Firefox
Browser version: 19.0.2

Reported by simon@surfacedigital.com.au on 2013-04-05 02:42:48

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by barancev on 2013-04-10 20:38:56

  • Labels added: Type-Enhancement, Component-IDE
  • Labels removed: Type-Defect

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Hi Simon,

The typeKeys command was created to fire the key* events. However it does not work
correctly in the latest browsers. The sendKeys command was recently introduced to solve
the problem. It is backed by the WebDriver atoms and should fire all expected events.

The click and select commands would ultimately be backed by the WebDriver atoms as
well. However, changing it right away may break existing tests.

Cheers,
Samit Badle
Selenium IDE Maintainer
@samitbadle
http://blog.reallysimplethoughts.com/

Reported by Samit.Badle on 2013-04-26 06:56:38

  • Status changed: Accepted
  • Labels added: Priority-Low
  • Labels removed: Priority-Medium

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by luke.semerau on 2015-09-17 17:45:11

  • Labels added: Restrict-AddIssueComment-Commit

@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant