New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using .SendKeys(Keys.Enter) on a form submit button with Firefox RemoteWebDriver doesn't submit the form #2079

Open
lukeis opened this Issue Mar 2, 2016 · 16 comments

Comments

@lukeis
Member

lukeis commented Mar 2, 2016

Originally reported on Google Code with ID 2079

Before filing an issue, please read the page at
http://code.google.com/p/selenium/wiki/SeleniumHelp This contains lot of
information about how best to get help, and tells you what we need to know.

Still here? We know that bugs are frustrating and annoying things. We also
know that you've probably spent ages trying to figure out what's wrong. The
more information you give us now, the more likely it is that we'll be able
to help.

What steps will reproduce the problem?
1. Start a RemoteWebDriver for Firefox
2. Navigate to and fill out a form
3. Attempt to submit the form by sending the Enter key to the submit button

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

Expected output: the form is submitted
Actual output: the form is not submitted


Selenium version: 2.1 .NET bindings
OS: Windows XP
Browser: Firefox
Brower version: 5.0


Please provide any additional information below. A sample reduced test
case, or a public URL that demonstrates the problem will intrigue our merry
band of Open Source developers far more than nothing at all: they'll be far
more likely to look at your problem if you make it easy for them!

Confirmed as working as expected using RemoteWebDrivers for Chrome stable, IE 8 and
IE 9.

The issue can be reproduced at http://www.red-gate.com/search. Repro test case attached.

Reported by ben.adderson on 2011-07-19 09:35:19


- _Attachment: [IssueRepro.cs](https://storage.googleapis.com/google-code-attachments/selenium/issue-2079/comment-0/IssueRepro.cs)_
@lukeis

This comment has been minimized.

Show comment
Hide comment
@lukeis

lukeis Mar 2, 2016

Member
Thanks for the bug report.  Do you know if this worked on an older version of WebDriver?

For reference, this also happens with both native and synthesised events in FF5.0 on
Ubuntu - the search box is focused but not submitted.

Reported by dawagner on 2011-07-19 11:06:11

  • Labels added: Browser-Firefox
Member

lukeis commented Mar 2, 2016

Thanks for the bug report.  Do you know if this worked on an older version of WebDriver?

For reference, this also happens with both native and synthesised events in FF5.0 on
Ubuntu - the search box is focused but not submitted.

Reported by dawagner on 2011-07-19 11:06:11

  • Labels added: Browser-Firefox
@lukeis

This comment has been minimized.

Show comment
Hide comment
@lukeis

lukeis Mar 2, 2016

Member
The first version I ever tried this on was I think 2.0rc2. It didn't work then either,
but the need to do it then disappeared so I forgot about it until now.

Reported by ben.adderson on 2011-07-19 11:21:28

Member

lukeis commented Mar 2, 2016

The first version I ever tried this on was I think 2.0rc2. It didn't work then either,
but the need to do it then disappeared so I forgot about it until now.

Reported by ben.adderson on 2011-07-19 11:21:28

@lukeis

This comment has been minimized.

Show comment
Hide comment
@lukeis

lukeis Mar 2, 2016

Member
I am investigating the issue too - FF 5.0 on Ubuntu 11.04.

dawanger, where do you know the bug from?

I was unable to find any report on neither Mozilla' Bugzilla (https://bugzilla.mozilla.org/query.cgi?format=advanced)
nor via Google.

Also note that ENTER works for me _until_ I run the selenium with Keys.ENTER. Afterwards
even pressing it manually fails.

Reported by madcrax on 2011-07-24 06:00:37

Member

lukeis commented Mar 2, 2016

I am investigating the issue too - FF 5.0 on Ubuntu 11.04.

dawanger, where do you know the bug from?

I was unable to find any report on neither Mozilla' Bugzilla (https://bugzilla.mozilla.org/query.cgi?format=advanced)
nor via Google.

Also note that ENTER works for me _until_ I run the selenium with Keys.ENTER. Afterwards
even pressing it manually fails.

Reported by madcrax on 2011-07-24 06:00:37

@lukeis

This comment has been minimized.

Show comment
Hide comment
@lukeis

lukeis Mar 2, 2016

Member

Reported by barancev on 2011-10-13 06:32:22

  • Labels added: Component-WebDriver
Member

lukeis commented Mar 2, 2016

Reported by barancev on 2011-10-13 06:32:22

  • Labels added: Component-WebDriver
@lukeis

This comment has been minimized.

Show comment
Hide comment
@lukeis

lukeis Mar 2, 2016

Member
Is this issue still actual? Version 2.1 is very old, please retest with the latest version.

Reported by barancev on 2012-12-04 20:38:33

  • Status changed: NeedsClarification
Member

lukeis commented Mar 2, 2016

Is this issue still actual? Version 2.1 is very old, please retest with the latest version.

Reported by barancev on 2012-12-04 20:38:33

  • Status changed: NeedsClarification
@lukeis

This comment has been minimized.

Show comment
Hide comment
@lukeis

lukeis Mar 2, 2016

Member
Just retested, and this is issue still exists.

Tested with Selenium v2.26, FF 17.0.1 on Windows 7 (using the repro case attached in
the initial report)

Reported by ben.adderson on 2012-12-05 09:20:52

Member

lukeis commented Mar 2, 2016

Just retested, and this is issue still exists.

Tested with Selenium v2.26, FF 17.0.1 on Windows 7 (using the repro case attached in
the initial report)

Reported by ben.adderson on 2012-12-05 09:20:52

@lukeis

This comment has been minimized.

Show comment
Hide comment
@lukeis

lukeis Mar 2, 2016

Member
Can you retest it with "local" FirefoxDriver instead of RemoteWebDriver:

var driver = new new FirefoxDriver();
...



Reported by barancev on 2012-12-05 12:33:41

Member

lukeis commented Mar 2, 2016

Can you retest it with "local" FirefoxDriver instead of RemoteWebDriver:

var driver = new new FirefoxDriver();
...



Reported by barancev on 2012-12-05 12:33:41

@lukeis

This comment has been minimized.

Show comment
Hide comment
@lukeis

lukeis Mar 2, 2016

Member
Yep, the issue affects the FirefoxDriver as well as the RemoteWebDriver.

Reported by ben.adderson on 2012-12-05 12:53:44

Member

lukeis commented Mar 2, 2016

Yep, the issue affects the FirefoxDriver as well as the RemoteWebDriver.

Reported by ben.adderson on 2012-12-05 12:53:44

@lukeis

This comment has been minimized.

Show comment
Hide comment
@lukeis

lukeis Mar 2, 2016

Member
OK, I can reproduce it. Java binding works as expected, it's .Net specific.

A workaround: replace Keys.Enter with Keys.Return

Reported by barancev on 2012-12-05 13:58:46

Member

lukeis commented Mar 2, 2016

OK, I can reproduce it. Java binding works as expected, it's .Net specific.

A workaround: replace Keys.Enter with Keys.Return

Reported by barancev on 2012-12-05 13:58:46

@lukeis

This comment has been minimized.

Show comment
Hide comment
@lukeis

lukeis Mar 2, 2016

Member
searchBoxes[1].SendKeys(Keys.Enter) works too

Reported by barancev on 2012-12-05 14:15:33

Member

lukeis commented Mar 2, 2016

searchBoxes[1].SendKeys(Keys.Enter) works too

Reported by barancev on 2012-12-05 14:15:33

@lukeis

This comment has been minimized.

Show comment
Hide comment
@lukeis

lukeis Mar 2, 2016

Member

Reported by barancev on 2013-02-23 19:37:24

  • Labels added: Lang-CSharp
Member

lukeis commented Mar 2, 2016

Reported by barancev on 2013-02-23 19:37:24

  • Labels added: Lang-CSharp
@lukeis

This comment has been minimized.

Show comment
Hide comment
@lukeis

lukeis Mar 2, 2016

Member

Reported by barancev on 2013-04-13 21:02:48

  • Status changed: Accepted
Member

lukeis commented Mar 2, 2016

Reported by barancev on 2013-04-13 21:02:48

  • Status changed: Accepted
@lukeis

This comment has been minimized.

Show comment
Hide comment
@lukeis

lukeis Mar 2, 2016

Member

Reported by eran.mes on 2013-06-18 12:50:38

Member

lukeis commented Mar 2, 2016

Reported by eran.mes on 2013-06-18 12:50:38

@lukeis

This comment has been minimized.

Show comment
Hide comment
@lukeis

lukeis Mar 2, 2016

Member
Just experienced the same problem. Keys.ENTER works in IE, Chrome, but doesn't work
in FireFox. The workaround with Keys.RETURN helps, however a proper fix would be desired.

Reported by r.fever on 2014-02-05 15:04:35

Member

lukeis commented Mar 2, 2016

Just experienced the same problem. Keys.ENTER works in IE, Chrome, but doesn't work
in FireFox. The workaround with Keys.RETURN helps, however a proper fix would be desired.

Reported by r.fever on 2014-02-05 15:04:35

@lukeis

This comment has been minimized.

Show comment
Hide comment
@lukeis

lukeis Mar 2, 2016

Member
Keys.Enter is not working in Firefox(19.0 version), but the same line of code is works
fine in Chrome and IE.

Line of code is
Ele.sendKeys(Keys.Enter)


Reported by Ajay.4098 on 2014-02-24 10:24:39

Member

lukeis commented Mar 2, 2016

Keys.Enter is not working in Firefox(19.0 version), but the same line of code is works
fine in Chrome and IE.

Line of code is
Ele.sendKeys(Keys.Enter)


Reported by Ajay.4098 on 2014-02-24 10:24:39

@lukeis

This comment has been minimized.

Show comment
Hide comment
@lukeis

lukeis Mar 2, 2016

Member

Reported by luke.semerau on 2015-09-17 17:44:25

  • Labels added: Restrict-AddIssueComment-Commit
Member

lukeis commented Mar 2, 2016

Reported by luke.semerau on 2015-09-17 17:44:25

  • 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.