我找不到像我这样的人。 在一个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)
多谢各位
能否尝试使用IntroductionInstabilityByIgoningProtectedModeSettings功能计划运行。如果您仍然面临问题,请在https://forums.aws.amazon.com中创建问题
相关问题 更多 >
编程相关推荐