sebastianbergmann/phpunit-selenium — Issue #87: Abstract Selenium2TestCase class for support of any WebDriver PHP implementation
Author: daluu
Created: 2012-01-26 20:00:07+00:00
State: open

Just thought I'd bring this up. Either made part of this main project, or forked as separate project.

PHPUnit (Selenium extension) is the defacto standard for Selenium testing with PHPUnit. And it's only starting to get WebDriver support.

There are several existing PHP WebDriver implemenations, and some are kind of popular. But they all have a crappy job of offering any PHPUnit support, at least to the level offer by this project (for Selenium RC).

I think a good common ground is to offer an abstract Selenium2TestCase (and maybe WebDriverBackedSeleniumTestCase) that offers API to PHPUnit features (assertions, etc.) and WebDriver but leave out the implementation details.

The user can then integrate said PHPUnit extension class with their desired PHP WebDriver implementation, whether it be from this project or one of the other ones.

Such a compromise standardizes the PHPUnit integration with WebDriver but gives choice for users on the WebDriver client implementation.

What do you all think?