Skip to content

Commit 3bc3409

Browse files
committed
Merge pull request php-webdriver#277 from OndraM/changelog
Add a changelog, cleanup readme
2 parents 1c98108 + 5f55880 commit 3bc3409

File tree

2 files changed

+53
-50
lines changed

2 files changed

+53
-50
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Changelog
2+
This project versioning adheres to [Semantic Versioning](http://semver.org/).
3+
4+
## Unreleased
5+
- Added CHANGELOG.md
6+
7+
## 1.1.1 - 2015-12-31
8+
- Fixed strict standards error in `ChromeDriver`
9+
- Added unit tests for `WebDriverCommand` and `DesiredCapabilities`
10+
- Fixed retrieving temporary path name in `FirefoxDriver` when `open_basedir` restriction is in effect
11+
12+
## 1.1.0 - 2015-12-08
13+
- FirefoxProfile improved - added possibility to set RDF file and to add datas for extensions
14+
- Fixed setting 0 second timeout of `WebDriverWait`

README.md

Lines changed: 39 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,80 @@
1-
php-webdriver -- WebDriver bindings for PHP
1+
php-webdriver WebDriver bindings for PHP
22
===========================================
33

4-
## DESCRIPTION
4+
## Description
5+
Php-webdriver library is PHP language binding for Selenium WebDriver, which allows you to control web browsers from PHP.
56

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.
79

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
912

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/
1114

1215
Any complaint, question, idea? You can post it on the user group https://www.facebook.com/groups/phpwebdriver/.
1316

14-
## GETTING THE CODE
17+
## Installation
1518

16-
There are two ways of getting the code:
19+
Installation is possible using [Composer](https://getcomposer.org/).
1720

18-
### Via Github
19-
git clone [email protected]:facebook/php-webdriver.git
20-
21-
### Via Packagist
22-
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:
3522

3623
curl -sS https://getcomposer.org/installer | php
3724

38-
Install the library.
25+
Then install the library:
3926

40-
php composer.phar install
27+
php composer.phar require facebook/webdriver
4128

29+
## Getting started
4230

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
4432

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.
4834

4935
```
5036
java -jar selenium-server-standalone-#.jar
5137
```
5238
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.
5440
5541
```php
5642
// This would be the url of the host running the server-standalone.jar
5743
$host = 'http://localhost:4444/wd/hub'; // this is the default
5844
```
5945
60-
* Launch Firefox
46+
* Launch Firefox:
6147
6248
```php
6349
$driver = RemoteWebDriver::create($host, DesiredCapabilities::firefox());
6450
```
6551
66-
* Launch Chrome
52+
* Launch Chrome:
6753
6854
```php
6955
$driver = RemoteWebDriver::create($host, DesiredCapabilities::chrome());
7056
```
7157
72-
* You can also customize the desired capabilities.
58+
You can also customize the desired capabilities:
7359
7460
```php
7561
$desired_capabilities = DesiredCapabilities::firefox();
76-
$desired_capabilities->setJavascriptEnabled(false);
77-
RemoteWebDriver::create($host, $desired_capabilities);
62+
$desired_capabilities->setCapability('acceptSslCerts', false);
63+
$driver = RemoteWebDriver::create($host, $desired_capabilities);
7864
```
7965
80-
* 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.
8167
82-
## RUN UNIT TESTS
68+
## Changelog
69+
For latest changes see [CHANGELOG.md](CHANGELOG.md) file.
8370
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
9172
9273
Check out the Selenium docs and wiki at http://docs.seleniumhq.org/docs/ and https://code.google.com/p/selenium/wiki
9374
9475
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)
9576
96-
## SUPPORT
77+
## Support
9778
9879
We have a great community willing to try and help you!
9980
@@ -109,12 +90,20 @@ https://www.facebook.com/groups/phpwebdriver/
10990
11091
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.
11192
112-
## CONTRIBUTING
93+
## Contributing
11394
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
11596
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.
11899
119100
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#.
120101
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

Comments
 (0)