简体   繁体   English

“这是 WebDriver 服务器的初始起始页” - 无法在 Selenium/Python 程序中使用 IE 11 解析

[英]"This is the initial start page for the WebDriver server" - Unable to resolve in Selenium/Python program using IE 11

After running my Selenium/Python program, browser opened with below message:运行我的 Selenium/Python 程序后,浏览器打开并显示以下消息:

This is the initial start page for the WebDriver server

I have done below steps to resolve this:我已完成以下步骤来解决此问题:

  1. In IE Options -> Security tab, Enable Protected Mode check box is ticked OFF in all zones: Internet, Local Intranet, Trusted sites and Restricted sites.在 IE 选项 -> 安全选项卡中,所有区域中的启用保护模式复选框都被勾选为关闭:Internet、本地 Intranet、可信站点和受限站点。 Also, in Advanced tab -> Security, ticked OFF the check box: "Enable Enhanced Protected Mode" (Also, I tried with enabling this Protected Mode in all zones and in Advanced tab too).此外,在高级选项卡 -> 安全性中,勾选复选框:“启用增强保护模式”(此外,我也尝试在所有区域和高级选项卡中启用此保护模式)。

  2. My IEdriver (version 3.1.4) and Selenium web driver (version 3.1.4) are compatible (both are on same version)我的 IEdriver(版本 3.1.4)和 Selenium Web 驱动程序(版本 3.1.4)兼容(两者都在同一版本上)

  3. I tried above two, still I am getting the same message.我尝试了以上两个,但仍然收到相同的消息。

I have added below content to ignore Protected mode:我添加了以下内容以忽略保护模式:

caps = DesiredCapabilities.INTERNETEXPLORER
caps['ignoreProtectedModeSettings'] = True
driver = webdriver.Ie(executable_path='C:/Selenium/Drivers/IEDriverServer.exe',capabilities=caps)

Still, I am getting the same message after adding above code.不过,在添加上述代码后,我收到了相同的消息。

Any ideas?有任何想法吗? Please help.请帮忙。

This is as per design.这是按照设计。 When IEDriverServer.exe opens a new a new Browsing Context ie Internet Explorer browsing session it navigates first to this page.IEDriverServer.exe打开一个新的浏览上下文Internet Explorer浏览会话时,它首先导航到此页面。

  • Browser Snapshot浏览器快照

IE驱动服务器

Once you initialize the browser through the line:通过以下行初始化浏览器后:

driver = webdriver.Ie(executable_path='C:/Selenium/Drivers/IEDriverServer.exe',capabilities=caps)

next you can invoke the get() command to access any url.接下来您可以调用get()命令来访问任何 url。 As an example:举个例子:

driver.get('https://www.google.com/')

Additional Consideration额外考虑

Additionally you need to:此外,您需要:

  • Upgrade Selenium to current levels Version 3.141.59 .Selenium升级到当前级别版本 3.141.59
  • Upgrade IEDriverServer to latest IEDriverServer v3.150.1 level.升级IEDriverServer到最新IEDriverServer v3.150.1水平。

    Note : As per best practices as Selenium Client and InternetExplorerDriver are released in sync and you must try to use both the binaries from the same major release.注意:根据最佳实践Selenium ClientInternetExplorerDriver是同步发布的,您必须尝试使用​​同一主要版本中的两个二进制文件。

  • Clean your Project Workspace through your IDE and Rebuild your project with required dependencies only.通过IDE清理项目工作区并仅使用所需的依赖项重建项目。
  • Execute your @Test .执行你的@Test
  • Always invoke driver.quit() within tearDown(){} method to close & destroy the WebDriver and Web Client instances gracefully.始终在tearDown(){}方法中调用driver.quit()以优雅地关闭和销毁WebDriverWeb Client实例。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 仅当与 URL 的连接速度较慢时,IE11 才会停留在 webdriver 服务器的初始启动页面 - IE11 stuck at initial start page for webdriver server only when connection to the URL is slow “用于驱动程序的命令行服务器已停止工作”和“这是WebDriver服务器的初始开始页面”错误 - “Command line server for ie driver has stopped working” and “This is the initial start page for the WebDriver server” errors python #Internet窗口中称为“这是WebDriver服务器的初始起始页”的描述。 - python #The description in the internet window called “This is the initial start page for the WebDriver server.” can not be processed any more 无法解决在python中的selenium webdriver中导入密钥的错误 - unable to resolve the error for importing keys in selenium webdriver in python 无法在 python 中使用 selenium webdriver 定位元素 - Unable to locate element using selenium webdriver in python 无法使用Python中的Selenium webdriver登录Quora - Unable to login to Quora using Selenium webdriver in Python 使用 Python 无法单击 Selenium Webdriver 中的框 - Unable to click on a box in Selenium Webdriver using Python 无法从WinServer 2012上使用Selenium Webdriver获取元素 - unable to fetch elements from ie using selenium webdriver on WinServer 2012 无法通过 python3 启动 Selenium Safari WebDriver - Unable to start Selenium Safari WebDriver via python3 在 python 中使用 selenium webdriver 滚动 web 页面 - Scroll a web page using selenium webdriver in python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM