微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决从 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 举报,一经查实,本站将立刻删除。