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
{{ message }}
This repository was archived by the owner on Mar 4, 2020. It is now read-only.
We love to have your help to make php-webdriver better!
4
+
5
+
Feel free to open an [issue](https://github.com/facebook/php-webdriver/issues) if you run into any problem, or
6
+
send a pull request (see bellow) with your contribution.
7
+
8
+
## Workflow when contributing a patch
9
+
10
+
1. Fork the project on GitHub
11
+
2. Implement your code changes into separate branch
12
+
3. Make sure all PHPUnit tests passes (see below). We also have Travis CI build which will automatically run tests on your pull request).
13
+
4. When implementing notable change, fix or a new feature, add record to Unreleased section of [CHANGELOG.md](CHANGELOG.md)
14
+
5. Submit your [pull request](https://github.com/facebook/php-webdriver/pulls) against community branch
15
+
16
+
Note before any pull request can be accepted, a [Contributors Licensing Agreement](http://developers.facebook.com/opensource/cla) must be signed.
17
+
18
+
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#.
19
+
FYI, here is the overview of [the official Java API](http://selenium.googlecode.com/svn/trunk/docs/api/java/index.html?overview-summary.html)
20
+
21
+
### Run unit tests
22
+
23
+
There are two test-suites: one with unit tests only, second with functional tests, which require running selenium server.
24
+
25
+
To execute all tests simply run:
26
+
27
+
./vendor/bin/phpunit
28
+
29
+
If you want to execute just the unit tests, run:
30
+
31
+
./vendor/bin/phpunit --testsuite unit
32
+
33
+
For the functional tests you must first download and start the selenium server, then run the `functional` test suite:
Copy file name to clipboardExpand all lines: README.md
+12-27
Original file line number
Diff line number
Diff line change
@@ -30,18 +30,16 @@ Then install the library:
30
30
31
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
32
32
33
-
*Download and run that file, replacing # with the current server version.
33
+
Download and run that file, replacing # with the current server version.
34
34
35
-
```
36
35
java -jar selenium-server-standalone-#.jar
37
-
```
38
36
39
37
Then when you create a session, be sure to pass the url to where your server is running.
40
38
41
-
```php
42
-
// This would be the url of the host running the server-standalone.jar
43
-
$host = 'http://localhost:4444/wd/hub'; // this is the default
44
-
```
39
+
```php
40
+
// This would be the url of the host running the server-standalone.jar
41
+
$host = 'http://localhost:4444/wd/hub'; // this is the default
42
+
```
45
43
46
44
* Launch Firefox:
47
45
@@ -57,11 +55,11 @@ Then when you create a session, be sure to pass the url to where your server is
* See https://code.google.com/p/selenium/wiki/DesiredCapabilities for more details.
67
65
@@ -92,18 +90,5 @@ If you're reading this you've already found our Github repository. If you have a
92
90
93
91
## Contributing
94
92
95
-
We love to have your help to make php-webdriver better. Feel free to
96
-
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.
99
-
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#.
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.
93
+
We love to have your help to make php-webdriver better. See [CONTRIBUTING.md](CONTRIBUTING.md) for more information
0 commit comments