2017 © Pedro Peláez
 

library webdriver

A php client for WebDriver

image

sonardesign/webdriver

A php client for WebDriver

  • Wednesday, July 22, 2015
  • by sonoranDesert
  • Repository
  • 3 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 605 Forks
  • 0 Open issues
  • 13 Versions
  • 0 % Grown

The README.md

php-webdriver -- WebDriver bindings for PHP

DESCRIPTION

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., (*1)

Looking for documentation about php-webdriver? See http://facebook.github.io/php-webdriver/, (*2)

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, (*3)

Any complaint, question, idea? You can post it on the user group https://www.facebook.com/groups/phpwebdriver/., (*4)

GETTING THE CODE

Github

git clone git@github.com:facebook/php-webdriver.git

Packagist

Add the dependency. https://packagist.org/packages/facebook/webdriver, (*5)

{
  "require": {
    "facebook/webdriver": "dev-master"
  }
}

Download the composer.phar, (*6)

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

Install the library., (*7)

php composer.phar install

GETTING STARTED

  • 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, (*8)

  • Download and run that file, replacing # with the current server version., (*9)

    java -jar selenium-server-standalone-#.jar
  • Then when you create a session, be sure to pass the url to where your server is running., (*10)

    // This would be the url of the host running the server-standalone.jar
    $host = 'http://localhost:4444/wd/hub'; // this is the default
  • Launch Firefox, (*11)

    $driver = RemoteWebDriver::create($host, DesiredCapabilities::firefox());
  • Launch Chrome, (*12)

    $driver = RemoteWebDriver::create($host, DesiredCapabilities::chrome());
  • You can also customize the desired capabilities., (*13)

    $desired_capabilities = DesiredCapabilities::firefox();
    $desired_capabilities->setJavascriptEnabled(false);
    RemoteWebDriver::create($host, $desired_capabilities);
  • See https://code.google.com/p/selenium/wiki/DesiredCapabilities for more details., (*14)

RUN UNIT TESTS

To run unit tests simply run:, (*15)

./vendor/bin/phpunit -c ./tests

Note: For the functional test suite, a running selenium server is required., (*16)

MORE INFORMATION

Check out the Selenium docs and wiki at http://docs.seleniumhq.org/docs/ and https://code.google.com/p/selenium/wiki, (*17)

Learn how to integrate it with PHPUnit Blogpost | Demo Project, (*18)

SUPPORT

We have a great community willing to try and help you!, (*19)

Currently we offer support in two manners:, (*20)

Via our Facebook Group

If you have questions or are an active contributor consider joining our facebook group and contributing to the communal discussion and support, (*21)

https://www.facebook.com/groups/phpwebdriver/, (*22)

Via Github

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., (*23)

CONTRIBUTING

We love to have your help to make php-webdriver better. Feel free to, (*24)

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#. FYI, here is the overview of the official Java API, (*25)

The Versions

22/07 2015

dev-community

dev-community https://github.com/SonarDesignInc/php-webdriver

A php client for WebDriver

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3.19

 

The Development Requires

selenium php webdriver sonardesign

22/07 2015

0.0.0

0.0.0.0 https://github.com/SonarDesignInc/php-webdriver

A php client for WebDriver

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3.19

 

The Development Requires

selenium php webdriver sonardesign

22/07 2015

dev-master

9999999-dev https://github.com/SonarDesignInc/php-webdriver

A php client for WebDriver

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3.19

 

The Development Requires

selenium php webdriver sonardesign

16/07 2015

1.0.1

1.0.1.0 https://github.com/facebook/php-webdriver

A PHP client for WebDriver

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3.19

 

The Development Requires

selenium php facebook webdriver

09/06 2015

1.0.0

1.0.0.0 https://github.com/facebook/php-webdriver

A PHP client for WebDriver

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3.19

 

The Development Requires

selenium php facebook webdriver

09/02 2015

v0.6.0

0.6.0.0 https://github.com/facebook/php-webdriver

A php client for WebDriver

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3.19

 

The Development Requires

selenium php facebook webdriver

05/11 2014

v0.5.1

0.5.1.0 https://github.com/facebook/php-webdriver

A php client for WebDriver

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3.19

 

The Development Requires

selenium php facebook webdriver

28/10 2014

v0.5

0.5.0.0 https://github.com/facebook/php-webdriver

A php client for WebDriver

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3.19

 

The Development Requires

selenium php facebook webdriver

21/02 2014

v0.4

0.4.0.0 https://github.com/facebook/php-webdriver

A php client for WebDriver

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3.19

 

The Development Requires

selenium php facebook webdriver

27/11 2013

v0.3

0.3.0.0 https://github.com/facebook/php-webdriver

A php client for WebDriver

  Sources   Download

Apache-2.0

The Requires

 

selenium php facebook webdriver

15/10 2013

v0.2.1

0.2.1.0 https://github.com/facebook/php-webdriver

A php client for WebDriver

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.20

 

10/10 2013

v0.2

0.2.0.0 https://github.com/facebook/php-webdriver

A php client for WebDriver

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

10/09 2013

v0.1

0.1.0.0 https://github.com/facebook/php-webdriver

A php client for WebDriver

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3.0