Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>There are also a few more that have been released in the last few months</p> <p><a href="https://github.com/Element-34/php-webdriver" rel="nofollow">PHP by Adam Goucher</a></p> <p><a href="https://github.com/Nearsoft/PHP-SeleniumClient" rel="nofollow">PHP by Nearsoft</a></p> <p>I've used the Facebok bindings as it had the best documentation/examples at the time which meant I could get something up and running asap.</p> <p>I'm trying the Nearsoft bindings now as their library is very similar (method names) to the official bindings in Java and the other supported languages...so hopefully once an official PHP library comes about it shouldn't take too much time to port my tests.</p> <p>So (in no order but all important), choose bindings that...</p> <ul> <li>Have good documentation/support/community activity</li> <li>Have the methods you need</li> <li>You can get running a basic test with</li> </ul> <hr> <p>Some issues I have encountered with the bindings are...</p> <ol> <li>Lack of examples if you are struggling to get a particular call working</li> <li>Lack of support/discussion with owners/community that use the bindings</li> <li>Trying to use Selenium to test Facebook applications is doable but flakey...there are tricks such as logging in as a test user and re-polling an element until it ready to be checked against...I think one of the saucelabs videos covers little quirks like this</li> <li>You can use open your Selenium IDE tests and select "Options" > "Format" to see what they might look like as test cases, helps understand how you might use your asserts/verifys in phpunit. You may have to <a href="http://blog.reallysimplethoughts.com/2011/06/10/does-selenium-ide-v1-0-11-support-changing-formats/" rel="nofollow">enable the "Formats" option</a> and install <a href="https://addons.mozilla.org/en-US/firefox/addon/selenium-ide-php-formatters/" rel="nofollow">PHP formats</a> for this to work though, and take note of the warning message the IDE mentions when switching formats</li> </ol> <hr> <p>Update June 2012 Just feeding back to say that the bindings from Nearsoft have turned out to be great, the "waitForElementUntilIsPresent" method and "WebDriverWait" class has meant my tests are much more reliable, even when using AJAXy features where the element isn't always ready.</p> <p>Also Norton Internet Security 2012 was the thing interfering with my initial testing using these bindings.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload