robotframework报错 'chromedriver' executable needs to be in PATH.
尝试把Chromedriver的路径添加到环境变量依然报错。
于是我把chromedriver.exe复制到python目录下(D:\Anaconda3\Scripts)的Scripts,运行成功。
F:\son\作业\Rf_homework>robot baidu.robot
==============================================================================
Baidu
==============================================================================
百度搜索xx [7892:6924:0621/115423:ERROR:base_feature_provider.cc(122)] manifestTypes: Allowing web_page contexts requires supplying a value for matches.
[11752:11828:0621/115426:ERROR:ipc_channel_win.cc(132)] pipe error: 109
[WARNING:..\..\..\..\flash\platform\pepper\pep_module.cpp(63)] SANDBOXED
百度搜索xx | PASS |
------------------------------------------------------------------------------
Baidu | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
==============================================================================
Output: F:\son\作业\Rf_homework\output.xml
Log: F:\son\作业\Rf_homework\log.html
Report: F:\son\作业\Rf_homework\report.html
运行cfg文件,robot -P . -V cfg.py tc