Thursday, July 3, 2014

Webdriver, IE and browser zoom level

So have you ever been running remote webdriver against Internet Explorer and received an error complaining about the zoom level? Even if you open the browser manually and reset the zoom level sometimes it will still happen. It's so annoying! Thankfully I found a solution.

When setting up the desired capabilities for the remote web driver there is a special option to ignore the zoom level. Here is an example in Java



Then go ahead and setup your remote webdriver using those DesiredCapablities and you normally would. You should notice that even if IE is set to 50% zoom, webdriver will not complain.