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

Commit 6b4ed44

Browse files
committed
Merge pull request #240 from frozzare/patch-1
Added syntax highlighting to readme
2 parents 8eb1952 + 6034d71 commit 6b4ed44

File tree

1 file changed

+29
-18
lines changed

1 file changed

+29
-18
lines changed

README.md

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,48 +19,59 @@ Any complaint, question, idea? You can post it on the user group https://www.fac
1919
### Packagist
2020
Add the dependency. https://packagist.org/packages/facebook/webdriver
2121

22-
{
23-
"require": {
24-
"facebook/webdriver": "~1.0"
25-
}
26-
}
27-
22+
```json
23+
{
24+
"require": {
25+
"facebook/webdriver": "~1.0"
26+
}
27+
}
28+
```
29+
2830
Download the composer.phar
2931

3032
curl -sS https://getcomposer.org/installer | php
3133

3234
Install the library.
3335

3436
php composer.phar install
35-
36-
37+
3738

3839
## GETTING STARTED
3940

4041
* 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
4142

4243
* Download and run that file, replacing # with the current server version.
4344

44-
java -jar selenium-server-standalone-#.jar
45+
```
46+
java -jar selenium-server-standalone-#.jar
47+
```
4548
4649
* Then when you create a session, be sure to pass the url to where your server is running.
4750
48-
// This would be the url of the host running the server-standalone.jar
49-
$host = 'http://localhost:4444/wd/hub'; // this is the default
51+
```php
52+
// This would be the url of the host running the server-standalone.jar
53+
$host = 'http://localhost:4444/wd/hub'; // this is the default
54+
```
5055
5156
* Launch Firefox
5257
53-
$driver = RemoteWebDriver::create($host, DesiredCapabilities::firefox());
54-
58+
```php
59+
$driver = RemoteWebDriver::create($host, DesiredCapabilities::firefox());
60+
```
61+
5562
* Launch Chrome
5663
57-
$driver = RemoteWebDriver::create($host, DesiredCapabilities::chrome());
64+
```php
65+
$driver = RemoteWebDriver::create($host, DesiredCapabilities::chrome());
66+
```
5867
59-
* You can also customize the desired capabilities.
68+
* You can also customize the desired capabilities.
6069
61-
$desired_capabilities = DesiredCapabilities::firefox();
62-
$desired_capabilities->setJavascriptEnabled(false);
63-
RemoteWebDriver::create($host, $desired_capabilities);
70+
```php
71+
$desired_capabilities = DesiredCapabilities::firefox();
72+
$desired_capabilities->setJavascriptEnabled(false);
73+
RemoteWebDriver::create($host, $desired_capabilities);
74+
```
6475
6576
* See https://code.google.com/p/selenium/wiki/DesiredCapabilities for more details.
6677

0 commit comments

Comments
 (0)