【发布时间】:2022-07-25 21:07:32
【问题描述】:
我在 Sauce 实验室运行我的机器人框架测试,对于 chrome/firefox/safari,没关系。但是对于 Edge,Sauce labs 无法识别 Edge 浏览器名称。
我尝试使用“边缘”,它抱怨。 "配置错误 -- 不支持的操作系统/浏览器/版本/设备组合:操作系统:'Windows 10',浏览器:'edge',版本:'97',设备:'未指定'"
我尝试使用“MicrosoftEdge”,它抱怨“ValueError:microsoftedge 不是受支持的浏览器。”
Robot framework+sauce lab 的正确 Edge 名称是什么?我的测试用例如下,欢迎提出任何建议。谢谢。
test
&{SAUCE_OPTIONS} Create Dictionary extendedDebugging=${True}
... capturePerformance=${True}
... seleniumVersion=4.0.0
... name=RF_Test
... build='demo'
&{DESIRED_CAPABILITIES} Create Dictionary
... browserName=MicrosoftEdge
... platform=Windows 10
... browserVersion=latest
... sauce:options=&{SAUCE_OPTIONS}
${remote_url} Set Variable https://sauceUserName:sauce_a...@ondemand.us-west-1.saucelabs.com:443/wd/hub
Open Browser https://google.com
... browser=${DESIRED_CAPABILITIES['browserName']}
... remote_url=${remote_url}
... desired_capabilities=${desired_capabilities}
# ... options=${options}
Sleep 5s
Close Browser
【问题讨论】: