3

Downloaded InternetExplorerDriver but i don't know how to start it in php tests. I'm using https://github.com/chibimagic/WebDriver-PHP/

3 Answers3

5
  1. Download selenium-server-standalone-2.31.0.jar from site https://code.google.com/p/selenium/downloads/list

  2. Download IEDriverServer_Win32_2.31.0.zip from site https://code.google.com/p/selenium/downloads/list, then uncompress

  3. Add both downloaded file into one directory, and add this dir to system variable path

  4. Add C:\Program Files\Internet Explorer into system variable path

  5. open command prompt type

    java -jar -Dwebdriver.ie.driver=IEDriverServer.exe selenium-server-standalone-2.31.0.jar

  6. Go back to your webdriver setting and change 'firefox' to 'internet explorer'

  7. Then you can start testing in ie, but do not forget change ie's default zooming from 125% to 100%.

Community
  • 1
  • 1
macio.Jun
  • 9,647
  • 1
  • 45
  • 41
0

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
Julien
  • 1,946
  • 3
  • 33
  • 51
  • 1
    Question 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
  • 1
    you 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
0

Instead of passing 'firefox', pass 'internet explorer':

$this->setBrowser('internet explorer');
JDT
  • 477
  • 1
  • 5
  • 17