alexandresalome/php-selenium

This package is abandoned and no longer maintained. The author suggests using the facebook/webdriver package instead.

PHP Library for Selenium

Maintainers

👁 alexandresalome

Package info

github.com/alexandresalome/PHP-Selenium

pkg:composer/alexandresalome/php-selenium

Statistics

Installs: 556 442

Dependents: 8

Suggesters: 0

Stars: 33

v1.1.0 2014-07-05 14:05 UTC

Requires

None

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 5578adde63b72aa453e37fee4a7729ce770310af

selenium

This package is auto-updated.

Last update: 2022-02-01 12:20:36 UTC


README

DEPRECATED

This library is deprecated, because it relies on Selenium1 protocol, a very old protocol. No support will be provided for this repository. If you want to continue using it, please fork it and maintain it on your own.

You can also consider migrating to Facebook PHP-WebDriver: https://github.com/facebook/php-webdriver

Description

Selenium is a tool for web test automation. This library is a client of the Selenium Server for PHP.

It provides a fluid interface with autocompletion and documentation in modern IDEs.

<?php
 // ...
 $browser
 ->open('/')
 ->click(Selenium\Locator::linkContaining('Blog'))
 ->waitForPageToLoad()
 ;

 echo $browser->getTitle();

Requirements

To use this library you will need :

  • PHP 5.3
  • A Selenium Server

Dependencies

2 dependencies are present in sub-modules :

  • Symfony2 DomCrawler : used for generating the Browser class
  • Symfony2 ClassLoader : used in autoload.php

It's up to you to decide how to use it.

How to include it ?

To make it work, you just need to add the classes to your autoloader.

If you have no existing autoloader, include autoload.php

How to use it ?

Take a look at examples in test/ folder.

References