AWS设备场IE等待页面超时

2024-09-26 22:51:22 发布

您现在位置:Python中文网/ 问答频道 /正文

我找不到像我这样的人。 在一个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)

多谢各位


Tags: 服务器client框架awsurlvalueresponse选项

热门问题