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

safari web driver 2.37 sendkeys(Keys.RETURN) not work #6666

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

safari web driver 2.37 sendkeys(Keys.RETURN) not work #6666

lukeis opened this issue Mar 4, 2016 · 7 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 4, 2016

Originally reported on Google Code with ID 6666

Selenium version:2.37
OS:Mac 10.9
Browser:safari 
Browser version:7.0

Groups group = nav.clickGroups();
group.waitForPageToLoad(driver);
// search group
log.writeLineWithDateStamp("prepare for search.");
group.clickJoinGroupsTab();
// wait for stable page
sleep(5);
log.writeLineWithDateStamp("search for group named test.");
enterSearchText(input).clickSearch().sendKeys(Keys.RETURN);

Current Result:
sendKeys(Keys.RETURN) not work. 



Reported by EvanHon1987 on 2013-12-04 04:11:00

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Try to use Keys.ENTER instead

Reported by barancev on 2013-12-04 10:24:07

  • Status changed: NeedsClarification
  • Labels added: OpSys-OSX

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by barancev on 2014-01-24 12:24:38

  • Labels added: Browser-Safari, Component-WebDriver

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

I am also facing same issue but i am using selenium 2.41 webdriver on mac os. I have
tried Keys.Enter but its not working

Reported by SiddharthaPasupuleti on 2014-05-05 11:24:16

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Is there any workaround?
My selenium test can't pass on Safari due to the same issue. All other browsers (Chrome/Firefox/IE/Opera)
are fine with Keys.ENTER (or Keys.RETURN). Safari driver is the only exception.

Reported by coolpeiz.zhang on 2014-05-19 17:46:09

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

I am on 2.42 and am experiencing the same issues. Keys.ENTER and Keys.RETURN neither
one works. I am getting the following WebDriverException:

WebDriverException: Message: u'Unknown command: {"id":"vsbjm4dowiw7","name":"sendKeysToActiveElement","parameters":{"value":["\ue007"]}}
(WARNING: The server did not provide any stacktrace information)\nCommand duration
or timeout: 14 milliseconds\nBuild info: version: \'2.33.0\', revision: \'4e90c97\',
time: \'2013-05-22 15:32:38\'\nSystem info: os.name: \'Mac OS X\', os.arch: \'x86_64\',
os.version: \'10.9\', java.version: \'1.7.0_45\'\nSession ID: null\nDriver info: org.openqa.selenium.safari.SafariDriver\nCapabilities
[{platform=MAC, javascriptEnabled=true, cssSelectorsEnabled=true, secureSsl=true, browserName=safari,
takesScreenshot=true, version=7.0}]' ; Stacktrace: 
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (NativeConstructorAccessorImpl.java:-2)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance (Constructor.java:526)
    at org.openqa.selenium.remote.ErrorHandler.createThrowable (ErrorHandler.java:191)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed (ErrorHandler.java:145)
    at org.openqa.selenium.remote.RemoteWebDriver.execute (RemoteWebDriver.java:554)
    at org.openqa.selenium.remote.RemoteExecuteMethod.execute (RemoteExecuteMethod.java:34)
    at org.openqa.selenium.remote.RemoteKeyboard.sendKeys (RemoteKeyboard.java:35)
    at org.openqa.selenium.support.events.internal.EventFiringKeyboard.sendKeys (EventFiringKeyboard.java:43)
    at org.openqa.selenium.remote.server.handler.interactions.SendKeyToActiveElement.call
(SendKeyToActiveElement.java:53)
    at org.openqa.selenium.remote.server.handler.interactions.SendKeyToActiveElement.call
(SendKeyToActiveElement.java:1)
    at java.util.concurrent.FutureTask.run (FutureTask.java:262)
    at org.openqa.selenium.remote.server.DefaultSession$1.run (DefaultSession.java:169)
    at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:615)
    at java.lang.Thread.run (Thread.java:744) 

Reported by curtis.salisbury on 2014-07-29 20:27:04

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

See my comment here:
https://code.google.com/p/selenium/issues/detail?id=4996#c35

In the future, please do not spam issues by posting the same information to multiple
bugs.

Reported by jmleyba on 2014-07-29 20:36:24

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by luke.semerau on 2015-09-17 17:46:32

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