RobotFramework:如何在开放浏览器下使用Selenium库中的铬?

xiaoxiao2025-08-20  41

我想使用RobotFramework和Selenium对网站进行自动化测试。我的测试在Firefox上运行得很好。不过,我想用铬代替。根据“开放浏览器”文档,它应该适用于Chrome。但是在我的Ubuntu机器上,我不能开箱就用那个浏览器。

下面是一个很小的例子:

*** Settings *** Library SeleniumLibrary *** Test Cases *** Open Browser And Check Title Open Browser about:blank chromium Title Should Be ${EMPTY}

如果出现以下错误,它将失败:

ValueError: chromium is not a supported browser.

有没有一种方法可以在Robotframework中设置与Selenium一起使用的铬?

转载请注明原文地址: https://www.6miu.com/read-5035038.html

最新回复(0)