2017 © Pedro PelĂĄez
 

library test-selenium

Selenium 2 bindings

image

xi/test-selenium

Selenium 2 bindings

  • Thursday, May 2, 2013
  • by mpartel
  • Repository
  • 2 Watchers
  • 4 Stars
  • 54 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 8 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

xi-test-selenium

This is a PHP 5.3 wrapper around Selenium 2 WebDriver Server via the wire protocol., (*1)

It is useful, reasonably well-tested, cleanly built and extensible. Although it does not wrap everything yet, it can be used right now and trivially subclassed to meet any additional requirements (although a fork and a pull request would also be appreciated)., (*2)

The library is quite easy to use with any test framework, but there is an inherit-and-go base class for PHPUnit., (*3)

Mini-Tutorial

Download the latest selenium-server-standalone jar and leave it running with java -jar path/to/the.jar., (*4)

Usage:, (*5)

<?php
use \Xi\Test\Selenium\SeleniumServer,
    \Xi\Test\Selenium\WebDriver;

// An autoloader with the proper search paths is assumed

$server = new SeleniumServer('http://localhost:4444/wd/hub');
$browser = new WebDriver($server);
$browser->visit('/index');
$browser->findByLabel('Username')->fillIn('john');
$browser->findByLabel('Password')->fillIn('shepard');
$browser->find('form#login button[type=submit]')->click();
$browser->waitForText('Welcome john');
$browser->screenshot('after-login.png');

API documentation is available., (*6)

With PHPUnit, just extend \Xi\Test\Selenium\PHPUnit\WebDriverTestCase and use $this->browser., (*7)

These scripts may be useful:, (*8)

Competitors

The following libraries aim to do what we do., (*9)

  • http://code.google.com/p/php-webdriver-bindings/
  • https://github.com/chibimagic/WebDriver-PHP
  • http://www.phpunit.de/manual/current/en/selenium.html

The Versions

02/05 2013

dev-master

9999999-dev http://github.com/xi-project/xi-test-selenium

Selenium 2 bindings

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

by Martin PĂ€rtel

test selenium

02/05 2013

1.0.0

1.0.0.0 http://github.com/xi-project/xi-test-selenium

Selenium 2 bindings

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

by Martin PĂ€rtel

test selenium

02/05 2013

0.3.1

0.3.1.0 http://github.com/xi-project/xi-test-selenium

Selenium 2 bindings

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

by Martin PĂ€rtel

test selenium

02/05 2013

0.3.0

0.3.0.0 http://github.com/xi-project/xi-test-selenium

Selenium 2 bindings

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

by Martin PĂ€rtel

test selenium

25/04 2013

0.2.2

0.2.2.0 http://github.com/xi-project/xi-test-selenium

Selenium 2 bindings

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

by Martin PĂ€rtel

test selenium

25/04 2013

0.2.1

0.2.1.0 http://github.com/xi-project/xi-test-selenium

Selenium 2 bindings

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

by Martin PĂ€rtel

test selenium

17/04 2013

0.2.0

0.2.0.0 http://github.com/xi-project/xi-test-selenium

Selenium 2 bindings

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

by Martin PĂ€rtel

test selenium

17/04 2013

0.1.0

0.1.0.0 http://github.com/xi-project/xi-test-selenium

Selenium 2 bindings

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

by Martin PĂ€rtel

test selenium