我确定我会被称为六种无知,但我无法在网上找到直接的答案。为什么我需要像facebook的php webdriver这样的包装器,如果我安装了Selenium服务器和Selenium webdriver(今天,所以是最新版本的)?我正在使用PHP。为什么我需要Selenium Webdriver的PHP包装器?
我的示例测试(如下)工作正常。这是否意味着我不需要一个包装,或者可能我有一个,而不知道它?
<?php
class test extends PHPUnit_Extensions_SeleniumTestCase
{
protected function SetUp()
{
$this->setBrowser("*chrome");
$this->setBrowserUrl("http://www.google.com");
PHPUnit_Extensions_SeleniumTestCase::shareSession(true);
}
public function testSubmitLead()
{
$this->open("/");
sleep(5);
}
好像你已经在使用包装 - PHPUnit Selenium Extensions。 – Arran 2014-09-21 19:52:50
所以这真的是我的问题,如果我使用这个,为什么我需要别的东西?或者我不? – BIU 2014-09-22 08:34:03