简体   繁体   English

IE driver 4.0.0 卡在 This is the initial start page for the WebDriver server

[英]IE driver 4.0.0 stuck at This is the initial start page for the WebDriver server

I am using Internet Explorer driver 4.0.0(32bit) and selenium updated version 4.1.2when I run the code using Internet Explorer driver 4.0.0 it is stuck at This is the initial start page for the WebDriver server.我正在使用 Internet Explorer 驱动程序 4.0.0(32 位)和 selenium 更新版本 4.1.2,当我使用 Internet Explorer 驱动程序 4.0.0 运行代码时,它卡在了这是WebDriver服务器的初始起始页。 even though I check the setting in Internet Explorer:即使我检查了 Internet Explorer 中的设置:

  1. All the protected mode is disabled禁用所有保护模式
  2. zoom setting is 100% for Internet Explorer and windows also Internet Explorer 和 Windows 的缩放设置为 100%
  3. enchanted protected mode is off魔法保护模式已关闭

but when I change the Internet Explorer driver to 3.1.4 it works fine.但是当我将 Internet Explorer 驱动程序更改为 3.1.4 时,它工作正常。 I also tried the Internet Explorer 4.0.0 for 64 but the same issue I am facing please help me.我还尝试了 Internet Explorer 4.0.0 for 64,但我面临的同样问题请帮助我。

public class EdgeTest {
    static RemoteWebDriver driver = null;

    public static void main(String[] args) throws InterruptedException {
        System.setProperty("webdriver.ie.driver",
                "D:\\Automation\\Jar Details\\Drivers\\IEDriverServer_Win32_4.0.0\\IEDriverServer.exe");
        InternetExplorerOptions ieOptions = new InternetExplorerOptions();
        ieOptions.attachToEdgeChrome();
        ieOptions.withEdgeExecutablePath("C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe");
        ieOptions.setCapability("ignoreProtectedModeSettings", true);
        ieOptions.setCapability("ignoreZoomSettings",true);
        System.out.println("this:"+ieOptions.getCapability("ignoreZoomSettings"));
         driver = new InternetExplorerDriver(ieOptions);
        InternetExplorerDriverService.createDefaultService();
        driver.get("https://github.com/");
        WebElement elem = driver.findElement(By.name("q"));
        elem.sendKeys("gitu");

        elem.sendKeys(Keys.ENTER);

        driver.quit();

error: "Could not create a new remote session" this is an error getting错误:“无法创建新的远程会话”这是一个错误

It looks like you are using selenium webdriver to automate Edge IE mode.看起来您正在使用 selenium webdriver 来自动化 Edge IE 模式。 I tried executing your code and I found this code to work fine (using IE driver 4.0.0 and Selenium 4.1.2).我尝试执行您的代码,发现此代码运行良好(使用 IE 驱动程序 4.0.0 和 Selenium 4.1.2)。

But when executing code again before the code has not been executed complete, you get the same problem you describe (execute code twice at once).但是在代码尚未执行完成之前再次执行代码时,您会遇到您描述的相同问题(一次执行代码两次)。 like this:像这样:

在此处输入图像描述

So I think when the IE driver may be occupied, you can try to open the task manager, end the related task (IE driver 32 bit), and then re-execute the code, I think this should be useful to you.所以我觉得当IE驱动可能被占用的时候,可以尝试打开任务管理器,结束相关任务(IE驱动32位),然后重新执行代码,我想这应该对你有用。

暂无
暂无

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

相关问题 Selenium IE Webdriver 停留在“这是 WebDriver 服务器的初始启动页面”。 使用 IE11 - Selenium IE Webdriver stuck at "This is the initial start page for the WebDriver server." with IE11 仅当与 URL 的连接速度较慢时,IE11 才会停留在 webdriver 服务器的初始启动页面 - IE11 stuck at initial start page for webdriver server only when connection to the URL is slow 这是WebDriver服务器的初始启动页面 - This is the initial start page for the WebDriver server 如何解决 IE Webdriver 服务器初始启动页面错误 - Selenium IE Webdriver with JMeter - How to resolve IE Webdriver server initial start page error - Selenium IE Webdriver with JMeter IE转到http:// localhost:36559 /并显示消息“这是WebDriver服务器的初始起始页” - IE goes to http://localhost:36559/ with message “This is the initial start page for the WebDriver server” 我无法解决以下问题。 这是WebDriver服务器的初始启动页面 - I am unable to resolve the below problem. This is the initial start page for the WebDriver server Java Selenium 3.141.59 - Webdriver 超时等待驱动程序服务器启动 - Java Selenium 3.141.59 - Webdriver timed out waiting for driver server to start Selenium 3.7 webdriver 错误:等待驱动程序服务器启动超时 - Selenium 3.7 webdriver Error: Timed out waiting for driver server to start webdriver 在打开 IE 起始页后出现超时错误 - webdriver is giving timeout error after opening IE start page 如何通过IE11 WebDriver启动Selenium独立服务器? - How to start selenium standalone server ith IE11 webdriver?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM