Phpunit and Webdriver(Selenium2) - Can I run tests without selenium server like other languages?

StackOverflow https://stackoverflow.com/questions/22161601

Pregunta

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 hay solución correcta

Otros consejos

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top