Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

Grid 2.0 Fails launching IE9 #1699

Closed
lukeis opened this issue Mar 2, 2016 · 8 comments
Closed

Grid 2.0 Fails launching IE9 #1699

lukeis opened this issue Mar 2, 2016 · 8 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 2, 2016

Originally reported on Google Code with ID 1699

What steps will reproduce the problem?
1. Start hub with "java -jar selenium-standalone.jar -role hub"
2. Start node with "java -jar selenium-standalone.jar -role wd -hub http://localhost:4444/grid/register
-port 5555"
3. Running eclipse project with following code http://pastebin.com/NgQMjb3N

What is the expected output? What do you see instead?
Expect IE9 to launch and connect to google. Instead see http://pastebin.com/WuLK5KYW

IE9 works fine when launching as:
WebDriver driver = new InternetExplorerDriver();

Also the same code launches Firefox and Chrome successfully (after passing in Chrome
path to node of course)

What version of the product are you using? On what operating system?
I am using trunk build and on Windows 7.

Please provide any additional information below.

Reported by michaelwskwan on 2011-05-23 21:36:49

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

DesiredCapabilities ie = new DesiredCapabilities();
ie.setBrowserName("internet explorer");

Specifying the capabilities as above and passing this in instead is a workaround for
this issue.

Reported by michaelwskwan on 2011-05-23 22:14:07

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

the issue is more around the auto discovery of IE version and windows version.
windows is found using Platform.getCurrent()
IE version is not auto-discovered at all and left blank

2 possible workaround at the moment until the problem is fixed :
1- be very generic on the test side ( comment1 ). If you don't specify version or platform,
any IE will match
2- ( better) help the self registering node by  providing the info 
java -jar selenium-server-standalone.jar -role webdriver -hub http://localhost:4444/grid/register
-port 5555 -browser "browserName=internet explorer,version=7,platform=XP" 

Platform.is() will be used to match the platform.

François

Reported by francois.reynaud on 2011-05-23 22:23:57

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Reported by simon.m.stewart on 2011-05-31 14:58:53

  • Labels added: Component-Grid

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

I am facing the same issue as well. on my hub. i used following code
{String hubURL = "http://10.254.2.212:4444/wd/hub";
        DesiredCapabilities capability = DesiredCapabilities.internetExplorer();;       
        //capability.setBrowserName("internet explorer");
        //capability.setPlatform("WINDOWS");
        //capability.setVersion("9");
        WebDriver driver = new RemoteWebDriver(new URL(hubURL), capabilityInt);


        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());
        driver.quit();
          }

This works for firefox but doesnt work for IE9 with win 7. Check below for the error
trace.
{
Exception in thread "main" org.openqa.selenium.WebDriverException: Error forwarding
the new session cannot find : {platform=WINDOWS, ensureCleanSession=true, browserName=internet
explorer, version=}
Command duration or timeout: 114 milliseconds
Build info: version: '2.16.1', revision: '15405', time: '2012-01-05 12:23:11'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.38-13-generic', java.version:
'1.6.0_26'
Driver info: driver.version: RemoteWebDriver
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:147)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:113)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:435)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:135)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:94)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:102)
    at com.main.SelTest.main(SelTest.java:27)
Caused by: org.openqa.grid.common.exception.GridException: Error forwarding the new
session cannot find : {platform=WINDOWS, ensureCleanSession=true, browserName=internet
explorer, version=}
    at org.openqa.grid.web.servlet.handler.RequestHandler.process(RequestHandler.java:151)
    at org.openqa.grid.web.servlet.DriverServlet.process(DriverServlet.java:81)
    at org.openqa.grid.web.servlet.DriverServlet.doPost(DriverServlet.java:67)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.openqa.jetty.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
    at org.openqa.jetty.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)
    at org.openqa.jetty.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
    at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1530)
    at org.openqa.jetty.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
    at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1482)
    at org.openqa.jetty.http.HttpServer.service(HttpServer.java:909)
    at org.openqa.jetty.http.HttpConnection.service(HttpConnection.java:820)
    at org.openqa.jetty.http.HttpConnection.handleNext(HttpConnection.java:986)
    at org.openqa.jetty.http.HttpConnection.handle(HttpConnection.java:837)
    at org.openqa.jetty.http.SocketListener.handleConnection(SocketListener.java:243)
    at org.openqa.jetty.util.ThreadedServer.handle(ThreadedServer.java:357)
    at org.openqa.jetty.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

}

Reported by qatseay on 2012-01-12 20:41:15

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

This issue was closed by revision r16945.

Reported by barancev on 2012-05-17 12:54:48

  • Status changed: Fixed

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Issue 3119 has been merged into this issue.

Reported by barancev on 2012-05-17 13:00:47

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Issue 3407 has been merged into this issue.

Reported by barancev on 2012-05-17 13:01:57

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Reported by luke.semerau on 2015-09-17 18:12:48

  • Labels added: Restrict-AddIssueComment-Commit

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant