Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IE 10 - compatibility mode ON]org.openqa.selenium.NoSuchWindowException: Unable to get browser #21

Open
GoogleCodeExporter opened this issue May 20, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Set IE 10 to open all pages in compatibility mode on
2. run java code below
public void testLocalPageVerticalEdge(){
        DesiredCapabilities caps = new DesiredCapabilities();
        caps.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
        InternetExplorerDriver idriver = new InternetExplorerDriver(caps);
//      FirefoxDriver idriver = new FirefoxDriver();
        idriver.get("file:///D:/Documents/Care2U/DM2.html");


        LayoutBugDetector detector = new DetectTextNearOrOverlappingVerticalEdge();
        detector.setScreenshotDir(new File("target"));
        WebPage webPage = new WebPage(idriver);

        Collection<LayoutBug> layoutBugs = detector.findLayoutBugsIn(webPage);

        for (LayoutBug bug : layoutBugs){
            System.out.println("HTML: " + bug.getDescription() + bug.getScreenshot());
        }       
        idriver.quit();
    }


What is the expected output? What do you see instead?
Started InternetExplorerDriver server (64-bit)
2.26.3.0
Listening on port 44526
FAILED: testLocalPageVerticalEdge
org.openqa.selenium.NoSuchWindowException: Unable to get browser (WARNING: The 
server did not provide any stacktrace information)
Command duration or timeout: 32 milliseconds
Build info: version: '2.43.0', revision: 
'accb3003b9fb8f7cae30f9669b4c594a065396a6', time: '2014-09-09 22:22:51'
System info: host: , os.name: 'Windows 8', os.arch: 'amd64', os.version: '6.2', 
java.version: '1.7.0_67'
Session ID: 9c1ba1fb-e05b-4afd-9806-f631ca57c39f
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
Capabilities [{platform=WINDOWS, cssSelectorsEnabled=true, 
javascriptEnabled=true, browserName=internet explorer, handlesAlerts=true, 
nativeEvents=true, takesScreenshot=true, version=10}]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:204)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:156)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:599)
    at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:508)
    at com.googlecode.fightinglayoutbugs.WebPage.executeJavaScript(WebPage.java:339)
    at com.googlecode.fightinglayoutbugs.WebPage.injectJQueryIfNotPresent(WebPage.java:83)
    at com.googlecode.fightinglayoutbugs.WebPage.<init>(WebPage.java:76)
    at eu.isdc.stage.tests.selenium.tests.q1.LayoutBugs.testLocalPageVerticalEdge(LayoutBugs.java:36)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)

What version of the product are you using? On what operating system?
Windows 8, IE 10, Java 1.7. 

Please provide any additional information below.


Original issue reported on code.google.com by contan.andrei on 30 Oct 2014 at 1:41

@GoogleCodeExporter
Copy link
Author

Oops, wrong place. can't seem to be able to change/delete it

Original comment by contan.andrei on 30 Oct 2014 at 1:54

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

No branches or pull requests

1 participant