phpunit-selenium icon indicating copy to clipboard operation
phpunit-selenium copied to clipboard

Update Selenium RC start method to take a WebDriver session ID for WebDriverBackedSelenium support

Open daluu opened this issue 12 years ago • 5 comments

See the following for background:

https://groups.google.com/forum/?fromgroups#!topic/selenium-users/6E53jIIT0TE

http://seleniumhq.wordpress.com/2012/02/08/announcing-selenium-2-19-the-prancing-unicorn-release/

Selenium server now includes the WebDriverBackedSelenium functionality of WebDriver as part of server that any language binding can use. But to use it requires use of some WebDriver code (via this project's Selenium 2 bindings, or the other PHP WebDriver bindings) to start up WebDriver browser session then pass that session to Selenium RC code/bindings to work with via the old RC API but using WebDriver "underneath".

I think it would be helpful to the community to have PHP support for this new server side functionality. For those not yet ready to migrate to WebDriver API.

I assume this hasn't been implemented yet. If already done, ignore and close this issue.

Suggested changes for this issue:

  • modify Selenium RC start() method to support input for WebDriver session ID (per referenced thread post, in python it would be like "sel.start(driver=driver)" )
  • maybe modify or offer additional class/method for Selenium 2 bindings in this project for use with WebDriverBackedSelenium server side feature. That is don't use Selenium2TestCase as a test case but starter code to instantiate WebDriver session then pass to SeleniumTestCase (RC version) to work with as RC test case.

The start method change alone would allow use of the other PHP WebDriver bindings with PHPUnit-Selenium (RC) for WebDriverBackedSelenium. The other suggested change is to do the same thing with single project code base rather than integrate with the other PHP bindings.

daluu avatar Jun 13 '12 17:06 daluu