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
Php-webdriver library is PHP language binding for Selenium WebDriver, which allows you to control web browsers from PHP.
5
6
6
-
This WebDriver client aims to be as close as possible to bindings in other languages. The concepts are very similar to the Java, .NET, Python and Ruby bindings for WebDriver.
7
+
This WebDriver client aims to be as close as possible to bindings in other languages.
8
+
The concepts are very similar to the Java, .NET, Python and Ruby bindings for WebDriver.
7
9
8
-
Looking for documentation about php-webdriver? See http://facebook.github.io/php-webdriver/
10
+
This is new version of PHP client, rewritten from scratch starting 2013.
11
+
Using the old version? Check out Adam Goucher's fork of it at https://github.com/Element-34/php-webdriver
9
12
10
-
The PHP client was rewritten from scratch. Using the old version? Check out Adam Goucher's fork of it at https://github.com/Element-34/php-webdriver
13
+
Looking for API documentation of php-webdriver? See http://facebook.github.io/php-webdriver/
11
14
12
15
Any complaint, question, idea? You can post it on the user group https://www.facebook.com/groups/phpwebdriver/.
13
16
14
-
## GETTING THE CODE
17
+
## Installation
15
18
16
-
There are two ways of getting the code:
19
+
Installation is possible using [Composer](https://getcomposer.org/).
Add the dependency to composer.json (see https://packagist.org/packages/facebook/webdriver)
23
-
24
-
```json
25
-
{
26
-
"require": {
27
-
"facebook/webdriver": "~1.0"
28
-
}
29
-
}
30
-
```
31
-
32
-
## INSTALLATION
33
-
34
-
Download the composer.phar
21
+
If you don't already use Composer, you can download the `composer.phar` binary:
35
22
36
23
curl -sS https://getcomposer.org/installer | php
37
24
38
-
Install the library.
25
+
Then install the library:
39
26
40
-
php composer.phar install
27
+
php composer.phar require facebook/webdriver
41
28
29
+
## Getting started
42
30
43
-
## GETTING STARTED
31
+
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
44
32
45
-
* 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
46
-
47
-
* Download and run that file, replacing # with the current server version.
33
+
* Download and run that file, replacing # with the current server version.
48
34
49
35
```
50
36
java -jar selenium-server-standalone-#.jar
51
37
```
52
38
53
-
* Then when you create a session, be sure to pass the url to where your server is running.
39
+
Then when you create a session, be sure to pass the url to where your server is running.
54
40
55
41
```php
56
42
// This would be the url of the host running the server-standalone.jar
57
43
$host = 'http://localhost:4444/wd/hub'; // this is the default
* See https://code.google.com/p/selenium/wiki/DesiredCapabilities for more details.
66
+
* See https://code.google.com/p/selenium/wiki/DesiredCapabilities for more details.
81
67
82
-
## RUN UNIT TESTS
68
+
## Changelog
69
+
For latest changes see [CHANGELOG.md](CHANGELOG.md) file.
83
70
84
-
To run unit tests simply run:
85
-
86
-
./vendor/bin/phpunit -c ./tests
87
-
88
-
Note: For the functional test suite, a running selenium server is required.
89
-
90
-
## MORE INFORMATION
71
+
## More information
91
72
92
73
Check out the Selenium docs and wiki at http://docs.seleniumhq.org/docs/ and https://code.google.com/p/selenium/wiki
93
74
94
75
Learn how to integrate it with PHPUnit [Blogpost](http://codeception.com/11-12-2013/working-with-phpunit-and-selenium-webdriver.html) | [Demo Project](https://github.com/DavertMik/php-webdriver-demo)
95
76
96
-
## SUPPORT
77
+
## Support
97
78
98
79
We have a great community willing to try and help you!
If you're reading this you've already found our Github repository. If you have a question, feel free to submit it as an issue and our staff will do their best to help you as soon as possible.
111
92
112
-
## CONTRIBUTING
93
+
## Contributing
113
94
114
-
We love to have your help to make php-webdriver better. Feel free to
95
+
We love to have your help to make php-webdriver better. Feel free to
115
96
116
-
* open an [issue](https://github.com/facebook/php-webdriver/issues) if you run into any problem.
117
-
* fork the project and submit [pull request](https://github.com/facebook/php-webdriver/pulls). Before the pull requests can be accepted, a [Contributors Licensing Agreement](http://developers.facebook.com/opensource/cla) must be signed.
97
+
* open an [issue](https://github.com/facebook/php-webdriver/issues) if you run into any problem.
98
+
* fork the project and submit [pull request](https://github.com/facebook/php-webdriver/pulls). Before the pull requests can be accepted, a [Contributors Licensing Agreement](http://developers.facebook.com/opensource/cla) must be signed.
118
99
119
100
When you are going to contribute, please keep in mind that this webdriver client aims to be as close as possible to other languages Java/Ruby/Python/C#.
120
101
FYI, here is the overview of [the official Java API](http://selenium.googlecode.com/svn/trunk/docs/api/java/index.html?overview-summary.html)
102
+
103
+
### Run unit tests
104
+
105
+
To run unit tests simply run:
106
+
107
+
./vendor/bin/phpunit -c ./tests
108
+
109
+
Note: For the functional test suite, a running selenium server is required.
0 commit comments