首页 > 技术文章 > RF Firefox Profile

zwingblog 2017-01-05 09:54 原文

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

 

Open Browserhttps://aws-qa5.infaqa.com/ma/FFff_profile_dir=C:/Users/Administrator/Desktop/自动化/vmyd0fdk.ICS_FF_JA

以上是自己存放的位置。

以下是默认的FF的profile的地址

ff_profile_dir=C:\\Users\\Administrator\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\pttmmmd3.ICS_FF

C:\Users\Administrator\AppData\Roaming\Mozilla\Firefox\Profiles\pttmmmd3.ICS_FF 

 

另:

创建profile,可以

 

Launch profile manager

  • firefox.exe -P (Windows)

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

  • ./firefox -profilemanager (Linux) 

 如果没有出现,可能是你已经打开了 firefox ,如果是请先关闭。

推荐阅读