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}
页:
[1]