从 reddered 接收消息超时:在 jenkins 上的远程 Windows 机器上运行时为 600.00

问题描述

在远程 Windows 机器上从 jenkins 运行脚本。如果在本地运行或在远程 Windows 机器打开的情况下运行(查看屏幕),脚本运行良好,完全没有问题。但是当我没有积极观察在 Windows 远程机器上运行的脚本时运行。这在脚本未在字段中输入数据的特定点也失败。然而,它通过多个屏幕输入数据。它只会在特定页面失败。

命令运行:bat "C:\Dev\apache-maven-3.6.1\bin\mvn clean verify -Dstory=${storyFileVar} -DtestCase=${testCase} -Denv.USER=${DevEnvironmentNameVar} - Dservice.env=pipelines -Dmaven.clean.failOnError=false -Dwebdriver.driver=provided -Dwebdriver.provided.type=sf -Dwebdriver.provided.sf=sf.icp.selenium.bdd.serenity.SerenityWebDriverWrapper -Dchrome.switches= “--disable-extensions、--no-sandBox、--disable-gpu、--disable-dev-shm-usage、启用自动化、--headless、--disable-dev-shm-usage、启动最大化,--disable-infobars,--disable-browser-side-navigation""

System.out.println("checkpoint 1");
        Assert.assertTrue(Namefrom.equals(NameFromPage.getText()));
        webdriverwait wait = new webdriverwait(getDriver(),10);
        wait.until(ExpectedConditions.visibilityOf(firstName));
        HighlightElement.highlightElement(getDriver(),firstName);
        firstName.type("test name");

        HighlightElement.highlightElement(getDriver(),emailTestemail);
        emailTestemail.type("testemailid@gmail.com");
        HighlightElement.highlightElement(getDriver(),emailTextField);
        emailTextField.type("sample text so test the email module");
        sendButton.click();

        System.out.println("checkpoint 9"); 

检查点 1 正在打印但不是检查点 9。然而,HighlightElement.highlightElement 正在执行,但只是没有看到 .type() 被执行,(当脚本卡在 Jenkins 中并且当我打开 Windows 遥控器时看到这种行为机器并看到屏幕卡在那里),我没有看到任何字段已填充,但只有当我打开远程机器时,脚本才会失败,说该元素未启用。 (直到那时它一直保持在那里,如果我不打开 Windows 远程机器,就会看到渲染消息)

我尝试了其中存在的所有解决方案,但没有任何效果。 :Selenium Timed out receiving message from renderer

我不怀疑 chrome 驱动程序问题,因为前 2 个页面在进入此页面之前已成功执行。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)