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

AWS Device Farm IE 超时等待页面

如何解决AWS Device Farm IE 超时等待页面

在我的情况下,我找不到任何人。 我在一个 AWS 农场中编写了自己的 selenium 框架,并将其用作网格、chrome、firefox 与功能选项配合良好,但是当我将其设置为 INTERNETEXPLORER 时,此选项的测试一直失败。

self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x7fbb123fa790>
response = {'status': 500,'value': '{\n\t"value" : \n\t{\n\t\t"error" : "timeout",\n\t\t"message" : "Timed out waiting for page to load.",\n\t\t"stacktrace" : ""\n\t}\n}\r\n'}

我不明白为什么会发生这种情况,但显然,它不会检测到页面已加载,但在视频中已加载。

下面是我输入的代码

 devicefarm_client = boto3.client("devicefarm",region_name="us-west-2")
        testgrid_url_response = devicefarm_client.create_test_grid_url(
            projectArn="BLANK ON PURPOSE.",expiresInSeconds=1000,)
        desired_capabilities = DesiredCapabilities.INTERNETEXPLORER
        desired_capabilities['IntroduceInstabilityByIgnoringProtectedModeSettings'] = True
        desired_capabilities["platform"] = "windows"
        driver = Remote(testgrid_url_response["url"],desired_capabilities)
        driver.set_window_size(1920,1080)

谢谢。

解决方法

您能否尝试使用 IntroduceInstabilityByIgnoringProtectedModeSettings 功能安排运行。如果您仍然遇到问题,请在 https://forums.aws.amazon.com 中创建问题。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。