Selenium and IE in php

Below example illustrates how to launch Internet Explorer in Selenium in PHP. Make sure that protected mode settings are same for all zones in IE before running the code. Also IEDriverserver.exe file should be in PATH.
class LaunchIE extends PHPUnit_Framework_TestCase {

protected $webDriver;

public function setUp()
$capabilities = array(WebDriverCapabilityType::BROWSER_NAME => ‘internet explorer’);
$this->webDriver = RemoteWebDriver::create(‘https://localhost:4444/wd/hub’, $capabilities);

protected $url = ‘’;

public function testTitle()

// checking that page title contains word ‘Tutorial’
$this->assertContains(‘Tutorial’, $this->webDriver->getTitle());

public function tearDown()
//Close the browser

Web development and Automation testing

solutions delivered!!