【发布时间】:2019-02-08 11:24:53
【问题描述】:
我创建了以下 java 类:
public class setup {
public void browserSetup() {
// System.setProperty("webdriver.chrome.driver","/home/cangouser-38/Documents/mohan/chromedriver");
}
我的机器人框架测试用例如下所示:
*** Settings ***
Documentation A resource file containing the application specific keywords
Library Selenium2Library
Library com.Auto.Robot.SeleniumRobot.setup
*** Test Cases ***
Check out joe colantonio dot com
Open Browser https://www.google.com gc
Close Browser
驱动程序可执行文件的路径必须由 webdriver.chrome.driver 系统属性设置;有关详细信息,请参阅https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver。最新版本可以从http://chromedriver.storage.googleapis.com/index.html下载
【问题讨论】: