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
+14-7Lines changed: 14 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,32 +9,39 @@ Usage example:
9
9
10
10
```php
11
11
use React\EventLoop\Factory as LoopFactory;
12
-
use React\Http\Browser;
13
12
use Itnelo\React\WebDriver\Client\W3CClient;
14
13
15
14
$loop = LoopFactory::create();
16
-
$browser = new Browser($loop);
17
15
18
16
$webdriver = new W3CClient(
19
-
$browser,
17
+
$loop,
20
18
[
21
19
'server' => [
22
20
'host' => 'selenium-hub',
23
21
'port' => 4444,
24
22
],
25
-
'request' => [
23
+
'command' => [
26
24
'timeout' => 30,
27
25
],
26
+
'browser' => [
27
+
'tcp' => [
28
+
'bindto' => '192.168.56.10:0',
29
+
],
30
+
'tls' => [
31
+
'verify_peer' => false,
32
+
'verify_peer_name' => false,
33
+
],
34
+
],
28
35
]
29
36
);
30
37
```
31
38
32
-
See a self-documented [ClientInterface.php](src/ClientInterface.php) for the API details. Not all methods are ported
33
-
(only the most necessary), so feel free to open an issue / make a pull request if you want more.
39
+
See a self-documented [ClientInterface.php](src/ClientInterface.php) for the API details. Not all methods and arguments
40
+
are ported (only the most necessary), so feel free to open an issue / make a pull request if you want more.
34
41
35
42
## See also
36
43
37
-
-[php-webdriver/webdriver](https://github.com/php-webdriver/php-webdriver) — the original, "blocking" implementation;
44
+
-[php-webdriver/webdriver](https://github.com/php-webdriver/php-webdriver) — the original, "blocking" implementation;
38
45
to get information how to use some advanced methods. For example, [WebDriverKeys](https://github.com/php-webdriver/php-webdriver/blob/main/lib/WebDriverKeys.php#L10)
39
46
helper describes Unicode strings for sending special inputs to page elements (e.g. `Ctrl`, `Alt` and other keys).
0 commit comments