PHP Selenium Library

I've just created a PHP library for Selenium! It provides some basic features :

  • Fluid interface
  • IDE code-completion
  • Independant library

For the moment, it's very basic (but it works).

I plan to add some extra features later like context management, integrations into Symfony2, maybe Mink too.

Sample code

<?php
require_once __DIR__.'/autoload.php';

$client  = new Selenium\Client();
$browser = $client->getBrowser('http://alexandre-salome.fr');

// Starts the browser
$browser->start();

$browser
    ->open('/')
    ->click(Selenium\Locator::linkContaining('Blog'))
    ->waitForPageToLoad(10000)
;

echo "Page title: ".$browser->getTitle()."\n";

Available on Github : https://github.com/alexandresalome/PHP-Selenium

Luis Cordova October 9, 2011

hi nice, _md was working on a driver for Selenium for behat/mink, I think it was more geared towards zf2 but not sure to what extend.
This is sf2 oriented I guess and it sounds very interestnig. Could you please email me answering this question, and I use Sahi a lot and goutte and all others, but mainly Sahi because I think all others still give more problems.

Question is: What/How Selenium beats Sahi approach or what are the advantages/disadvantages. I would like to make the jump if need be, or complement my usage.

Thanks,

Luis