我能够通过以下机器人框架测试打开浏览器:
Onboard The Customers
Open Browser https://xxxxxxxxxx/xx chrome
Chromedriver在我的家中,正确设置了路径。
但是,现在我想在詹金斯(Jenkins(运行该项目。因此,我将Chromedriver复制到Jenkins_home(/var/lib/jenkins(。设置包含此目录的路径。
将RF测试更改为:
Onboard The Customers
Set Environment Variable webdriver.chrome.driver /var/lib/jenkins/chromedriver
Open Browser https://xxxxxxxxxx/xx chrome
我无法在此错误上播放:
Onboard The Customers
[ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: No browser is open
Test Start Time: 20170504 12:22:42.512
Test End Time: 20170504 12:22:42.541
| FAIL |
WebDriverException: Message: 'chromedriver' executable needs to be in PATH.
我在詹金斯作业中设置的路径中存在错误。因此,一旦我纠正了测试现在正在运行。