Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit 944c76e

Browse files
committed
Update readme - passThrough mode, mention Java 8 is required for Selenium server
1 parent 61f5474 commit 944c76e

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

README.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,30 +39,38 @@ Then install the library:
3939

4040
All you need as the server for this client is the `selenium-server-standalone-#.jar` file provided here: http://selenium-release.storage.googleapis.com/index.html
4141

42-
Download and run that file, replacing # with the current server version.
42+
Download and run that file, replacing # with the current server version. Keep in mind you must have Java 8+ installed to start this command.
4343

4444
java -jar selenium-server-standalone-#.jar
4545

46+
When using Selenium server 3.5 and newer with some remote end clients (eg. Firefox with Geckodriver), you MUST disable so called "pass-through" mode, so that remote browser's protocol is translated to the protocol supported by php-webdriver (see [issue #469](https://github.com/facebook/php-webdriver/issues/469)):
47+
48+
java -jar selenium-server-standalone-#.jar -enablePassThrough false
49+
4650
Then when you create a session, be sure to pass the url to where your server is running.
4751

4852
```php
4953
// This would be the url of the host running the server-standalone.jar
5054
$host = 'http://localhost:4444/wd/hub'; // this is the default
5155
```
5256

53-
* Launch Firefox:
57+
##### Launch Firefox
58+
59+
Make sure to have latest Firefox and [Geckodriver](https://github.com/mozilla/geckodriver/releases) installed.
60+
61+
```php
62+
$driver = RemoteWebDriver::create($host, DesiredCapabilities::firefox());
63+
```
5464

55-
```php
56-
$driver = RemoteWebDriver::create($host, DesiredCapabilities::firefox());
57-
```
65+
##### Launch Chrome
5866

59-
* Launch Chrome:
67+
Make sure to have latest Chrome and [Chromedriver](https://sites.google.com/a/chromium.org/chromedriver/downloads) installed.
6068

61-
```php
62-
$driver = RemoteWebDriver::create($host, DesiredCapabilities::chrome());
63-
```
69+
```php
70+
$driver = RemoteWebDriver::create($host, DesiredCapabilities::chrome());
71+
```
6472

65-
You can also customize the desired capabilities:
73+
##### You can also customize the desired capabilities
6674

6775
```php
6876
$desired_capabilities = DesiredCapabilities::firefox();

0 commit comments

Comments
 (0)