andycha28 / php-webdriver-bindings

Automatically exported from code.google.com/p/php-webdriver-bindings
0 stars 0 forks source link

Howto start phpunit tests using InternetExplorerDriver? #31

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Couldn't find any information in wiki. Howto start phpunit tests using 
InternetExplorerDriver 
(http://selenium.googlecode.com/files/IEDriverServer_Win32_2.25.3.zip) ?

Original issue reported on code.google.com by capsule....@gmail.com on 16 Aug 2012 at 12:24

GoogleCodeExporter commented 8 years ago
I'll look into trying it out and provide code sample if I can get it working.

Original comment by manga...@gmail.com on 14 Dec 2012 at 8:23

GoogleCodeExporter commented 8 years ago
Step1:

Option 1:

Extract & place the IEDriverServer in your system path (any of the folders that 
are part of your system path), e.g. the %PATH% environment variable value. 
Selenium will then know how to make use of the server.

Option 2:

Extract the IEDriverServer, then reference it when starting the Selenium Server 
JAR like this:

java -jar selenium-server-standalone-2.28.0.jar 
-Dwebdriver.ie.driver=c:\Temp\IEDriverServer.exe

Step 2:

Then make sure in your test code you're using IE, e.g.

protected function setUp() {
        $this->webdriver = new WebDriver("localhost", 4444);
    $this->webdriver->connect("internet explorer");
}

and that should work.

Original comment by manga...@gmail.com on 9 Jun 2013 at 7:49