I am created test using this tutorial http://net.tutsplus.com/tutorials/php/how-to-use-selenium-2-with-phpunit/. And all work fine, but I can launch this test only on Firefox. I read a lot of articles about this in internet, but I don't find any solution. I have Windows XP, PHP 5.4.7, PHPUnit 3.7.13 by Sebastian Bergmann. Before running test I launched selenium-server-standalone-2.28.0.jar. There is my test
<?php
class Example extends PHPUnit_Extensions_Selenium2TestCase
{ protected function setUp()
{
$this->setBrowser("firefox");
$this->setBrowserUrl('http://test.com/');
}
public function testogin()
{
$this->url('http://test.com/');
$this->timeouts()->implicitWait(10000);
$username = $this->byId('user_login');
$username->value('test.ru');
$password = $this->byId('user_pass');
$password->value('test');
$this->byId('login_btn')->click();
}
}
?>
Please, help me run this test on other browsers. If you need more information, ask me. Thanks