我確定我會被稱爲六種無知,但我無法在網上找到直接的答案。爲什麼我需要像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