You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,45 +10,46 @@ Most clients require you to first read the protocol to see what's possible, then
10
10
Each command is just the name of a function call, and each additional path is just another chained function call. The function parameter is then either an array() if the command takes JSON parameters, or an individual primitive if it takes a URL parameter.
11
11
12
12
## SIMPLE EXAMPLES
13
+
13
14
### Note that all of these match the Protocol exactly
14
15
15
16
* Get a session (opens a new browser window)
16
17
17
-
$web_driver = new WebDriver(); // could pass a host besides localhost
18
+
$web_driver = new WebDriver(); // could pass a host besides localhost
18
19
19
20
$session = $web_driver->session(); // could pass a browser name
## 'GET', 'POST', or 'DELETE' to the same command examples
42
43
43
44
### If you can do multiple http methods for the same command, such as 'orientation', where 'POST' changes the orientation but 'GET' fetches it, call the command directly for the getter, and prepend the http method for the writers.
0 commit comments