【问题标题】:AWS Device Farm IE Timeout waiting for pageAWS Device Farm IE 超时等待页面
【发布时间】:2021-03-03 20:46:01
【问题描述】:

在我的情况下找不到任何人。 在一个 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)

谢谢。

【问题讨论】:

    标签: python python-3.x amazon-web-services selenium aws-device-farm


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-06-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-03
      • 2016-06-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多