2016-09-29 74 views
2

我試圖在firefox中運行量角器測試,但不幸的是沒有運氣。測試在Chrome上正確運行,但Firefox不知道如何啓動一個頁面。每次它嘗試去一個URL它會引發不正確的url:about:blank&utm_content=firstrun在火狐中運行量角器

我的配置是非常簡單的:

exports.config = { 
    multiCapabilities: [{ 
     'browserName': 'firefox' 
     }, { 
     'browserName': 'chrome' 
    }], 
    }, 

    params: { 
    url: 'https://google.com/', 
    outdir: './test/coverage/', 
    elements: [{ 
    'type': 'button', 
    'events': ['click'], 
    'elements': [] 
    }], 
}, 
    onPrepare: function() { 
    jasmine.getEnv().addReporter(reporter.getJasmine2Reporter()); 

    /*Logging*/ 
}, 

framework: 'jasmine', 
seleniumAddress: 'http://localhost:4444/wd/hub', 

我想它在Firefox版本48

+0

你有什麼版本的Firefox? – Hmahwish

+0

我更新了我的問題 – FCin

+0

我得到了同樣的結果,我使用的是Firefox 49 – Dash

回答

1

看起來與Firefox &硒的兼容性問題 真理的所有兼容性信息來源是Selenium ChangeLog

最後的兼容性聲明在Selenium 2.51 changeLog中,它讀取下面的s。所以一旦降級火狐46/45/44,它應該是無縫

與Firefox的項目的支持政策相一致,該驅動程序已 過測試與Firefox 44(當前版本),43(緊接
發佈),38(當前ESR發佈)和31(緊接在ESR 發佈之前)。

+0

我在44上試過了,它工作正常。它加載正確的url,但因爲超時而失敗,但這是我的一個問題,因爲我必須使用默認的超時選項。無論如何謝謝你。 – FCin