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.
Copy file name to clipboardExpand all lines: README.md
+26-40Lines changed: 26 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,75 +1,61 @@
1
-
php-webdriver -- WebDriver bindings for PHP
1
+
php-webdriver – WebDriver bindings for PHP
2
2
===========================================
3
3
4
-
## DESCRIPTION
4
+
## Description
5
+
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.
39
-
40
-
php composer.phar install
25
+
Then install the library:
41
26
27
+
php composer.phar require facebook/webdriver
42
28
43
-
## GETTING STARTED
29
+
## Getting started
44
30
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
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
46
32
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
For latest changes see [CHANGELOG.md](CHANGELOG.md) file.
84
70
85
-
## MORE INFORMATION
71
+
## More information
86
72
87
73
Check out the Selenium docs and wiki at http://docs.seleniumhq.org/docs/ and https://code.google.com/p/selenium/wiki
88
74
89
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)
90
76
91
-
## SUPPORT
77
+
## Support
92
78
93
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.
106
92
107
-
## CONTRIBUTING
93
+
## Contributing
108
94
109
-
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
110
96
111
-
* open an [issue](https://github.com/facebook/php-webdriver/issues) if you run into any problem.
112
-
* 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.
113
99
114
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#.
115
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)
0 commit comments