差異處
這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
rf:rf:usecustomizedfirefox [2015/11/26 22:34] tony |
rf:rf:usecustomizedfirefox [2023/06/25 09:48] (目前版本) |
||
---|---|---|---|
行 2: | 行 2: | ||
====== 使用自己的Firefox做測試 ====== | ====== 使用自己的Firefox做測試 ====== | ||
===== Problem ===== | ===== Problem ===== | ||
- | 在執行Windows上的測試,我們都有固定一包firefox,直接丟到測試系統中,並設定firefox.exe於環境變數PATH中;Linux則是直接使用系統預設的。然而在更新Selenium2Library同時,發現新的selenium在Windows上會強制讀取ProgramFiles內的Firefox。直接參考selenium的firefox_binary.py (v2.46.0): | + | 在執行Windows上的測試,我們都有固定一包firefox,直接丟到測試系統中,並設定firefox.exe於環境變數PATH中;Linux則是直接使用系統預設的。然而在更新Selenium2Library同時,發現新的selenium在Windows上會強制讀取ProgramFiles內的Firefox。讓我直接參考selenium的firefox_binary.py (v2.46.0): |
<code python> | <code python> | ||
def _get_firefox_start_cmd(self): | def _get_firefox_start_cmd(self): |