IE always opens with random local host and msg:"This is the initial start page for the WebDriver server."

4,649 views
Skip to first unread message

Hermez Artez

unread,
Mar 23, 2012, 3:40:05 PM3/23/12
to Selenium Users
I have searched for hours on this topic and have found no answers.

I have Selenium server2.20 using eclipse3.7 and jdk1.7

When I run the following test which was taken directly from the
seleniumhq site:

import org.openqa.selenium.*;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.remote.CapabilityType;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.support.ui.ExpectedCondition;
import org.openqa.selenium.support.ui.WebDriverWait;
import com.thoughtworks.selenium.Selenium;

public class Selenium2Example {
public static void main(String[] args) {

WebDriver driver = new InternetExplorerDriver();

driver.get("http://www.google.com/");

WebElement element = driver.findElement(By.name("q"));

element.sendKeys("Cheese!");

element.submit();

System.out.println("Page title is: " + driver.getTitle());

(new WebDriverWait(driver, 10)).until(new
ExpectedCondition<Boolean>() {
public Boolean apply(WebDriver d) {
return
d.getTitle().toLowerCase().startsWith("cheese!");
}
});

System.out.println("Page title is: " + driver.getTitle());

driver.quit();
}
}


It opens IE with a random local host "http://localhost:18709/" and a
message: This is the initial start page for the WebDriver server.

It works fine in firefox. Any clue as why this is happening? Thanks!

robbpjr

unread,
Mar 23, 2012, 7:19:50 PM3/23/12
to seleniu...@googlegroups.com
It's always done this for me, then it redirects to the page I'm testing. You didn't say this, but did you mean that it is just stuck at the "This is the initial start page for the WebDriver server" and never redirects?

Jim Evans

unread,
Mar 24, 2012, 1:38:46 AM3/24/12
to seleniu...@googlegroups.com
The technical reason for this is that, according to Microsoft, in situations where Protected Mode may be a valid configuration, the "correct" way to launch IE is using the IELaunchUrl API function. The caveat to this is that you must use a valid URL, and for the purposes of this API, about:blank doesn't qualify as valid. Since the IE driver uses an embedded HTTP server to communicate using the JSON Wire Protocol[1], and does so on a random port[2], we can create a handler for the root URL of the HTTP server which serves up a simple page. Luckily, this also gives us a valid URL with which to use the API.

I hope this helps explain what's happening there.
--Jim

[1] http://code.google.com/p/selenium/wiki/JsonWireProtocol
[2] There's no requirement this port be random, and most language bindings have an option that lets you fix the port if you want. See your language bindings' documentation for more details.

Jim Evans

unread,
Mar 24, 2012, 1:38:50 AM3/24/12
to seleniu...@googlegroups.com

Hermez Artez

unread,
Mar 27, 2012, 11:53:21 AM3/27/12
to Selenium Users
The page in IE was just stuck there and never proceeded to the rest of
my test case. However, I figured out the reason for this. I had to
disable the IE debugger and it works as expected now.

Code Monkey

unread,
Mar 29, 2012, 2:07:44 PM3/29/12
to seleniu...@googlegroups.com
Hey Hermez,
 
I'm just wondering if your solution would help me.  Can you please give me more details on "disabling the IE debugger"?  Are you talking about turning of debugging in "Developer Tools" (which I'm not currently doing).  Or are you talking about another setting in "Internet Options".
 
Thanks,
Chris

Mark Collin

unread,
Jun 11, 2013, 7:31:07 AM6/11/13
to seleniu...@googlegroups.com
Why do you think that is an error?

When it launches it should display "This is the initial start page for the WebDriver server" because it is the initial start page for the WebDriver server.


On 11/06/2013 11:40, manauwar alam wrote:
Hi.. All,

I am new to selenium mine application run only on IE.But while launching IE i am getting the eror "This is the initial start page for the WebDriver server"
 below are mine code

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;

import com.thoughtworks.selenium.DefaultSelenium;

public class WebDriver_module1 
{

public static void main(String[] args) 
{
System.setProperty("webdriver.ie.driver","C:\\Eclipse\\eclipse\\IEDriverServer.exe");
WebDriver driver =new InternetExplorerDriver(); 


Could some one help me plz its very urgent.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/eb1ef9a0-8356-4076-af90-e57943eae7ba%40googlegroups.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Mark Collin

unread,
Jun 12, 2013, 5:20:53 AM6/12/13
to seleniu...@googlegroups.com
What version of Selenium?
What version of IEDriverServer.exe?
What's the stack trace?


On 11/06/2013 12:36, manauwar alam wrote:
Hi Mark,

After this message  it stop. Nothing happening. also whenever i am launching its always going to localhost ..........."http://localhost:57274/"

Дмитрий Безручко

unread,
Jul 23, 2014, 9:19:57 AM7/23/14
to seleniu...@googlegroups.com
Hello !

I'm stuck with this inital page - when i'm getting to page i need to test, my tests don't work because as i understood Selenium stays on same window (this inital page) and i can't switch it to my page.
Anybody can help me ?
Reply all
Reply to author
Forward
0 new messages