Downloaded InternetExplorerDriver but i don't know how to start it in php tests. I'm using https://github.com/chibimagic/WebDriver-PHP/
3 Answers
Download selenium-server-standalone-2.31.0.jar from site https://code.google.com/p/selenium/downloads/list
Download IEDriverServer_Win32_2.31.0.zip from site https://code.google.com/p/selenium/downloads/list, then uncompress
Add both downloaded file into one directory, and add this dir to system variable path
Add C:\Program Files\Internet Explorer into system variable path
open command prompt type
java -jar -Dwebdriver.ie.driver=IEDriverServer.exe selenium-server-standalone-2.31.0.jar
Go back to your webdriver setting and change 'firefox' to 'internet explorer'
Then you can start testing in ie, but do not forget change ie's default zooming from 125% to 100%.
Usage
See the included SampleTest.php. Start up the Selenium 2 standalone server (http://code.google.com/p/selenium/downloads/list) and run the test with:
phpunit SampleTest.php
Make sure phpunit is in your path!
Tests
What's code without tests? Run the tests with:
phpunit WebDriverSelectorTest.php
phpunit WebDriverXPathTest.php
phpunit WebDriverColorTest.php

- 1,946
- 3
- 33
- 51
-
1Question is about howto run existing PHPUnit tests using [InternetExplorerDriver](http://selenium.googlecode.com/files/IEDriverServer_Win32_2.25.3.zip) – CaPsULe Mind Aug 16 '12 at 12:17
-
1you can not use this program in a browser, use php CLI (Command Line Interface) – Julien Aug 16 '12 at 12:34
-
@atmon3r [SampleTest.php](https://github.com/chibimagic/WebDriver-PHP/blob/master/SampleTest.php) is hard-coded to use Firefox. The question is what does he have to change in that file in order to have it use Internet Explorer instead of Firefox. – Darren Cook Aug 16 '12 at 23:55
Instead of passing 'firefox', pass 'internet explorer':
$this->setBrowser('internet explorer');

- 477
- 1
- 5
- 17