Skip to content

Commit

Permalink
Merge pull request teodesian#321 from mika/master
Browse files Browse the repository at this point in the history
Return 'text' parameter in send_keys
  • Loading branch information
gempesaw authored Jun 29, 2017
2 parents c3568f9 + 1e4752f commit 8cced16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/Selenium/Remote/WebElement.pm
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ sub send_keys {
# standalone server.
my $strings = join('', map { $_ .= "" } @strings);
my $params = {
'value' => [ split('', $strings) ]
'value' => [ split('', $strings) ],
text => $strings,
};
return $self->_execute_command( $res, $params );
}
Expand Down
2 changes: 1 addition & 1 deletion t/mock-recordings/11-action-chains-mock.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Thu, 25 May 2017 00:45:46 GMT\nServer: Jetty(9.4.3.v20170317)\nContent-Length: 159\nContent-Type: application/json;charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Thu, 25 May 2017 00:45:47 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"state\":\"success\",\"sessionId\":\"55e79ca1-4499-42b7-a5ff-052d8319c31d\",\"hCode\":1926643558,\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n",
"HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Thu, 25 May 2017 00:45:47 GMT\nServer: Jetty(9.4.3.v20170317)\nContent-Length: 159\nContent-Type: application/json;charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Thu, 25 May 2017 00:45:47 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"state\":\"success\",\"sessionId\":\"55e79ca1-4499-42b7-a5ff-052d8319c31d\",\"hCode\":1126613260,\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n"
],
"POST session/55e79ca1-4499-42b7-a5ff-052d8319c31d/element/0/value {\"value\":[\"t\",\"e\",\"s\",\"t\"]}" : [
"POST session/55e79ca1-4499-42b7-a5ff-052d8319c31d/element/0/value {\"text\":\"test\",\"value\":[\"t\",\"e\",\"s\",\"t\"]}" : [
"HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Thu, 25 May 2017 00:45:46 GMT\nServer: Jetty(9.4.3.v20170317)\nContent-Length: 158\nContent-Type: application/json;charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Thu, 25 May 2017 00:45:46 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"state\":\"success\",\"sessionId\":\"55e79ca1-4499-42b7-a5ff-052d8319c31d\",\"hCode\":176264164,\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n"
],
"POST session/51340f61-2ea5-435c-b0b4-696a64b09ecb/url {\"url\":\"http://medialize.github.io/jQuery-contextMenu/demo.html\"}" : [
Expand Down

0 comments on commit 8cced16

Please sign in to comment.