I’m guessing your problem is:
Browser zoom level was set to 0%. It should be set to 100%
From: webd...@googlegroups.com [mailto:webd...@googlegroups.com] On Behalf Of Olav Kokovkin
Sent: 30 July 2012 14:07
To: webd...@googlegroups.com
Subject: [webdriver] "Unexpected error launching Internet Explorer. Browser zoom level was set to 0%." Except it isn't.
Hello,
I've been using Selenium 2 for over a week now. At first i played around with this example from SeleniumHQ. I tried FirefoxDriver and InternetExplorerDriver and both worked fine. Now, i don't know what has changed, but when trying to run InternetExplorerDriver, i get this error:
Started InternetExplorerDriver server (64-bit)
2.25.2.0
Listening on port 14060
Exception in thread "main" org.openqa.selenium.WebDriverException: Unexpected error launching Internet Explorer. Browser zoom level was set to 0%. It should be set to 100% (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 1.70 seconds
Build info: version: '2.24.1', revision: '17205', time: '2012-06-19 15:28:49'
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_05'
Driver info: driver.version: InternetExplorerDriver
Session ID: 54d9b5eb-9b76-4e2d-b013-7ea05bcb13cc
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:188)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:472)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:155)
at org.openqa.selenium.ie.InternetExplorerDriver.setup(InternetExplorerDriver.java:114)
at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:54)
at org.openqa.selenium.example.Selenium2Example.testTest(Selenium2Example.java:40)
at org.openqa.selenium.example.Selenium2Example.main(Selenium2Example.java:14)
Naturally, i have checked and double-checked that i really do have zoom level set to 100%. I don't think you even can set it to 0%, so it seems that Selenium tries to check the zoom level but fails.
Has anyone else come across this?
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To view this discussion on the web visit https://groups.google.com/d/msg/webdriver/-/LpYUIErpofcJ.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
OK I suffered a bit from tl;dr and fired early J
I’ve not seen this (but I haven’t tried 2.25.2 IEDriver server)
Does it work fine with the previous version? If so you may have found a bug.
To unsubscribe from this group, send email to webdriver+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+unsubscribe@googlegroups.com.
InternetExplorerDriverService service = InternetExplorerDriverService.Builder()
.usingAnyFreePort()
.withLogFile(newFile("target/iedriver1.log"))
.withLogLevel(InternetExplorerDriverLogLevel.TRACE)
.build();
DesiredCapabilities caps = DesiredCapabilities.internetExplorer();
WebDriver driver = new InternetExplorerDriver(service, caps);
To set the capability, the Java bindings may not have a constant defined, but you can use the string literal, like so:
caps.setCapability("ignoreZoomLevel", true);
DesiredCapabilities caps = DesiredCapabilities.internetExplorer();
caps.setCapability("ignoreZoomLevel", true);
driver = new InternetExplorerDriver(caps);
WebDriver driver;
DesiredCapabilities caps = DesiredCapabilities.internetExplorer();
caps.setCapability("ignoreZoomSetting", true);
driver = new InternetExplorerDriver(caps);
Olav - were you able to fix this issue? I am getting following error:Cannot convert from 'OpenQA.Selenium.Remote.DesiredCapabilities' to 'OpenQA.Selenium.IE.InternetExplorerOptions'And this is how I constructing driver:DesiredCapabilities caps = DesiredCapabilities.InternetExplorer();~
caps.setCapability("ignoreZoomSetting", true);
driver = new InternetExplorerDriver(caps);
Olav - were you able to fix this issue? I am getting following error:Cannot convert from 'OpenQA.Selenium.Remote.DesiredCapabilities' to 'OpenQA.Selenium.IE.InternetExplorerOptions'And this is how I constructing driver:
DesiredCapabilities caps = DesiredCapabilities.InternetExplorer();~
caps.setCapability("ignoreZoomSetting", true);
driver = new InternetExplorerDriver(caps);
On Tuesday, July 31, 2012 7:52:20 AM UTC-5, Olav Kokovkin wrote: