[英]Phpunit and Webdriver(Selenium2) - Can I run tests without selenium server like other languages?
I'm using phpunit/phpunit-selenium for ui functional testing. 我正在使用phpunit / phpunit-selenium进行ui功能测试。 I followed this brochure phpunit-selenium on github
我在github上跟随了这本小册子phpunit-selenium
So far,I have to run the selenium standalone server as a http proxy, while I want to operate the browser directly like Java. 到目前为止,我必须将硒独立服务器作为http代理运行,而我想像Java一样直接操作浏览器。
Java code: Java代码:
WebDriver diver = new FirefoxDriver();
but i didn't find a class named WebDriver in phpunit-selenium code. 但是我没有在phpunit-selenium代码中找到一个名为WebDriver的类。
Could anybody show me a code sample in PHP ,thanks 有人可以给我看一下PHP中的代码示例,谢谢
Edit : I misunderstood your question. 编辑 :我误解了你的问题。 I guess facebook php-webdriver can help you.
我想facebook php-webdriver可以帮助您。 Search something like 'facebook php webdriver example' and you can find code examples .
搜索类似“ facebook php webdriver example”的内容,您可以找到代码示例 。
Old: 旧:
Test of Phpunit Selenium on Github there are some examples. 在Github上测试Phpunit Selenium有一些例子。
And there are examples in official manual . 并且在官方手册中有示例。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.