robot framework使用firefox的profile

来源:互联网 发布:原创歌曲网站软件 编辑:程序博客网 时间:2024/04/28 05:15

默认情况下,robot framework是启动不带任何配置信息的firefox,如果需要启动带有profile的话,增加一个参数即可,如

Open Browser  ${SERVER}  ${BROWSER}  ff_profile_dir=${FF_PROFILE}  或
Open Browser  ${SERVER}  ff_profile_dir=${FF_PROFILE}


另:

创建profile,可以

Launch profile manager

  • firefox.exe -P (Windows)

  • /Applications/Firefox.app/Contents/MacOS/firefox-bin -profilemanager (OSX)

  • ./firefox -profilemanager (Linux) 

0 0