51Testing软件测试论坛
标题:
robot设置下载文件存放默认文件夹
[打印本页]
作者:
ttt3
时间:
2021-11-15 18:47
标题:
robot设置下载文件存放默认文件夹
观摩大佬的写法,但还看不太懂,先放着
${options} evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys,selenium.webdriver #创建ChromeOptions类对象
${prefs} Create Dictionary download.default_directory ${dire}
Call Method ${options} add_experimental_option prefs ${prefs} #调用ChromeOptions类对象的方法设置参数
log ${url}
log ${urlALL}
${urlT} Set Variable If '${urlALL}'=='' ${url} ${urlALL}
log ${urlT}
log ${host}
Run Keyword If '${urlALL}'=='' Open Browser ${host}${urlT} chrome options=${options} ELSE Open Browser ${urlT} chrome options=${options}
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2