mattisbusycom / php-webdriver-bindings

Automatically exported from code.google.com/p/php-webdriver-bindings
0 stars 0 forks source link

CWebDriverTestCase enhancement to support Selenium RC APIs offered by PHPUnit SeleniumTestCase #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Looking at project home page, looks like this class was intended for use with 
Selenium IDE exported tests but...

Looking over current class implementation source code (haven't used the class 
in sample tests yet), I see not the full feature set of Selenium RC API 
available to PHPUnit SeleniumTestCase extension is implemented here. 

Would be ideal to offer that so that users of PHPUnit Selenium (RC) can migrate 
tests to Selenium 2 / Web Driver. 

This class already provides the starting base for that. Just need to support / 
wrap the rest of the API methods so that user doesn't have to specifically call 
webdriver->method(); or webelement->method(); from here. Basically migrate 
existing PHPUnit Selenium tests without really needing to change much code.

Not everything may be able to be wrapped on a 1-to-1 mapping, but for example 
here are some that we can or might be able to add to the class:

$this->getText(locator);
$this->selectWindow();
$this->getTitle();
$this->isChecked(locator);
$this->isSomethingSelected(locator);
$this->getValue(locator);
$this->isVisible(locator); //think maps to $WebElement->isDisplayed();
$this->getHTMLSource(); //$WebDriver->getPageSource();

getting text of and confirming presence of alerts, confirmations, and prompts

get/set/delete cookies

and perhaps more...

I'll attach a patch with said enhancements when I get a chance to implement it.

Original issue reported on code.google.com by manga...@gmail.com on 7 Dec 2011 at 3:40

GoogleCodeExporter commented 9 years ago
this goes along with issue 11.

Original comment by manga...@gmail.com on 7 Dec 2011 at 3:40

GoogleCodeExporter commented 9 years ago

Original comment by manga...@gmail.com on 9 Mar 2013 at 6:40

GoogleCodeExporter commented 9 years ago
Deferring merging and further work on this for now since Selenium RC (and thus 
WebDriverBackSelenium) is deprecated functionality. Not quite worth the work to 
invest in plus the PHPUnit-Selenium project now has Selenium 2 support anyways.

Original comment by manga...@gmail.com on 9 Jun 2013 at 3:24