首页 > 代码库 > Selenium通过WebDriver控制IE浏览器出错

Selenium通过WebDriver控制IE浏览器出错

错误信息:

WebDriverException: Message: Unexpected error launching Internet Explorer. Browser zoom level was set to 109%. It should be set to 100%

??

浏览器安全设置应该是100%

??

解决方法:

"Open Regedit and navigate to HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Zoom. In the right-hand pane is a listing for ZoomFactor. Double-click on it and click the button next to Decimal. Change the value from 110000 to 100000, click OK, and exit Regedit. Now every time you open IE, it should be zoomed into 150%. This will also zoom any new tabs that are opened."

??

来自 <http://www.51testing.com/html/25/349125-832691.html>

?

技术分享

Selenium通过WebDriver控制IE浏览器出错