Question

I'm using phpunit/phpunit-selenium for ui functional testing. I followed this brochure phpunit-selenium on github

So far,I have to run the selenium standalone server as a http proxy, while I want to operate the browser directly like Java.

Java code:

WebDriver diver = new FirefoxDriver(); 

but i didn't find a class named WebDriver in phpunit-selenium code.

Could anybody show me a code sample in PHP ,thanks

No correct solution

OTHER TIPS

Edit: I misunderstood your question. I guess facebook php-webdriver can help you. Search something like 'facebook php webdriver example' and you can find code examples.

Old:

Test of Phpunit Selenium on Github there are some examples.

And there are examples in official manual.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top