Перейти к содержимому

Master_lomaster

Регистрация: 06 дек 2013
Offline Активность: 04 мар 2015 13:52
*****

Мои темы

the path to the driver executable must be set by the webdriver.ie.driv

06 декабря 2013 - 13:08

Здравствуйте, у меня такая проблема.

require_once 'PHPUnit/Extensions/Selenium2TestCase.php';

class erpOrderTest extends PHPUnit_Extensions_Selenium2TestCase {

    function setUp() {
        $this->setBrowser("*firefox");
        $this->setBrowserUrl("http://localhost/");
    }

    function testMyTestCase() {
        $this->open("/");
    }

}

?>

Этот тест не выполняется, выдает ошибку
erpOrderTest::testMyTestCase()
PHPUnit_Extensions_Selenium2TestCase_WebDriverException: The path to the driver executable must be set by the webdriver.ie.driver system property; for more information, see http://code.google.com/p/selenium/wiki/InternetExplorerDriver. The latest version can be downloaded from http://code.google.com/p/selenium/downloads/list
При чем здесь вообще IE и его драйвер? У меня же Firefox. Версия Selenium 2.38.0 (с 2.37 то же самое), путь к папке с selenium-server и драйвером IE (тоже версии 2.38) прописан в PATH.
Причем,если заменить Selenium2TestCase.php на SeleniumTestCase.php, всё работает. Но я хочу перевести тесты на Селениум2, т.к. в RC не всё работает корректно.
Заранее благодарю за помощь.