<?php class Example extends PHPUnit_Extensions_SeleniumTestCase { protected function setUp() { $this->setBrowser('firefox'); $this->setBrowserUrl("https://www.google.ru/"); } public function testMyTestCase() { $this->open("/"); $this->type("id=gbqfq", "hello"); $this->click("id=gbqfb"); $this->waitForPageToLoad("10000"); $this->click("id=hdtb_tls"); } } ?>
Почему то на строке
$this->waitForPageToLoad("10000");
выдаёт ошибку
E
Time: 18.26 seconds, Memory: 2.50Mb
There was 1 error:
1) Example::testMyTestCase
Invalid response while accessing the Selenium Server at 'http://localhost:4444/s
elenium-server/driver/': Timed out after 10000ms
C:\Users\tester\Downloads\php-webdriver-master\name.php:15
C:\Users\tester\Downloads\php-webdriver-master\name.php:15
Caused by
RuntimeException: Invalid response while accessing the Selenium Server at 'http:
//localhost:4444/selenium-server/driver/': Timed out after 10000ms
C:\Users\tester\Downloads\php-webdriver-master\name.php:15
C:\Users\tester\Downloads\php-webdriver-master\name.php:15
FAILURES!
Tests: 1, Assertions: 0, Errors: 1.
хотя страница уже загрузилась.
Почему не может выполнить следующую строку ?