Skip to content

Firefox Driver sendKeysToActiveElement #1792

@titusfortner

Description

@titusfortner

This is on Firefox 45 on OSX, with the Firefox Driver. I'm seeing this behavior both local & via remote server.
I tested with FF 45 before it was released and didn't see this behavior, and I'm pretty sure we're testing this in the CI. So, I'm not sure why I'm seeing this right now. Can anyone duplicate?

Expected Behavior -

Post to session/:session_id/keys should type into body of page

Actual Behavior -

Opening a page and sending key command is putting the text into the url bar:
screen shot 2016-03-12 at 5 03 11 pm

Steps to reproduce -

-> POST session/942089a8-b772-4c9a-9a14-78ce2a76c5f8/url
   >>> http://127.0.0.1:4444/wd/hub/session/942089a8-b772-4c9a-9a14-78ce2a76c5f8/url | {"url":"http://ci.seleniumhq.org:2310/common/javascriptPage.html"}
     > {"Accept"=>"application/json", "Content-Type"=>"application/json; charset=utf-8", "Content-Length"=>"66"}17:02:30.845 INFO - Done: [new session: Capabilities [{rotatable=false, nativeEvents=false, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, version=, platform=ANY, cssSelectorsEnabled=true}]]
17:02:30.851 INFO - Executing: [get: http://ci.seleniumhq.org:2310/common/javascriptPage.html])
17:02:31.169 INFO - Done: [get: http://ci.seleniumhq.org:2310/common/javascriptPage.html]
<- {"state":"success","sessionId":"942089a8-b772-4c9a-9a14-78ce2a76c5f8","hCode":512158199,"value":null,"class":"org.openqa.selenium.remote.Response","status":0}
-> POST session/942089a8-b772-4c9a-9a14-78ce2a76c5f8/keys
   >>> http://127.0.0.1:4444/wd/hub/session/942089a8-b772-4c9a-9a14-78ce2a76c5f8/keys | {"value":["ab"]}
     > {"Accept"=>"application/json", "Content-Type"=>"application/json; charset=utf-8", "Content-Length"=>"16"}
17:02:31.174 INFO - Executing: [send keys to active: [ab]])
17:02:31.234 INFO - Done: [send keys to active: [ab]]
<- {"state":"success","sessionId":"942089a8-b772-4c9a-9a14-78ce2a76c5f8","hCode":31064293,"value":null,"class":"org.openqa.selenium.remote.Response","status":0}```

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions