Skip to content

Commit 02b8087

Browse files
committed
add example of how to send keystrokes
add example of how to send keystrokes with postValue(). How to send a json parameter was not really shown before
1 parent f626e96 commit 02b8087

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ The function's return value is exactly what is returned from the server as part
108108
// GET /session/:sessionId/window/:windowHandle/size
109109
$session->window()->size();
110110

111+
* Send keystrokes to an element with 'POST'
112+
113+
// POST /session/:sessionId/element/:id/value
114+
// getValue() is deprecated; use postValue($json) or value($json)
115+
$element->postValue(array("value" => str_split('some text to send to element')));
116+
111117
## Some unavoidable exceptions to direct protocol translation.
112118

113119
* Opening pages

0 commit comments

Comments
 (0)