SeleniumHQ / selenium-google-code-issue-archive

Archive, please see main selenium repo
https://github.com/seleniumhq/selenium
346 stars 194 forks source link

Selenium IDE in record mode doesn't generate type commands in some circumstances #3273

Closed lukeis closed 8 years ago

lukeis commented 8 years ago

Originally reported on Google Code with ID 3273

What steps will reproduce the problem?

1. Create the following HTML file and load it in the browser:

<code language="html">
<html>
<body>
<form id="form-id">
   <input name="id" />
</form>
</body>
</html>
</code>

It contains a simple(st) form with a single input field.

2. Start Selenium IDE in recording mode (Tools / Selenium IDE)
3. In the browser (above form), focus the input field, type several (random) characters
and hit TAB.

What is the expected output? What do you see instead?

I expected to see a line with 'type' command recorded in Selenium IDE. Instead, nothing
happened.

Selenium version: Selenium IDE 1.5.0
OS: Ubuntu 10.10 (maverick)
Browser: Firefox (Mozilla Firefox for Ubuntu canonical - 1.0)
Brower version: 9.0.1

I believe this behavior is triggered by the combination of a form *with* 'id' attribute
and a input field with 'name' attribute equal to string "id" inside it.

Either by removing form's 'id' attribute, or by changing value of input's 'name' attribute
to whatever else (or even removing input's 'name' attribute at all) makes IDE to behave
as expected - the "type" command is generated without any problems.

Reported by stefan.bg on 2012-01-25 09:33:03

lukeis commented 8 years ago

Reported by barancev on 2012-01-26 09:05:50

lukeis commented 8 years ago

Reported by llaskin on 2012-01-26 18:10:31

lukeis commented 8 years ago
I repped this issue

Reported by tiffany.laskin on 2012-02-05 17:50:05

lukeis commented 8 years ago

Reported by dave.hunt on 2012-02-09 14:13:25

lukeis commented 8 years ago
This issue was closed by revision r15867.

Reported by dave.hunt on 2012-02-10 01:01:20

lukeis commented 8 years ago
I was able to replicate this, and found the issue to be an assumption that there would
not be a child element with an id of 'id'. Removed this assumption and it seems to
work for me now. If you'd like to try out the fix and don't want to wait for 1.7.0
then you can try the latest build from Bamboo: http://xserve.openqa.org:8085/browse/IDE-EDITOR/latest/artifact

Note that you'll want at least build #230, which is building as I write this.

Reported by dave.hunt on 2012-02-10 01:21:44

lukeis commented 8 years ago

Reported by luke.semerau on 2015-09-17 18:14:38