diff options
author | Thomas <thomas.b.huang@gmail.com> | 2018-05-02 03:18:22 +0800 |
---|---|---|
committer | Thomas <thomas.b.huang@gmail.com> | 2018-05-02 03:18:22 +0800 |
commit | 9dfe4f410da8197cb6dfdc312ab04fe585e59fb6 (patch) | |
tree | 68716443b5d934fe0546b16e8810c116e51ab451 /test/e2e/func.js | |
parent | ac334d7b1a9cd8b6888f5c4f3309740d5df62474 (diff) | |
download | tangerine-wallet-browser-9dfe4f410da8197cb6dfdc312ab04fe585e59fb6.tar tangerine-wallet-browser-9dfe4f410da8197cb6dfdc312ab04fe585e59fb6.tar.gz tangerine-wallet-browser-9dfe4f410da8197cb6dfdc312ab04fe585e59fb6.tar.bz2 tangerine-wallet-browser-9dfe4f410da8197cb6dfdc312ab04fe585e59fb6.tar.lz tangerine-wallet-browser-9dfe4f410da8197cb6dfdc312ab04fe585e59fb6.tar.xz tangerine-wallet-browser-9dfe4f410da8197cb6dfdc312ab04fe585e59fb6.tar.zst tangerine-wallet-browser-9dfe4f410da8197cb6dfdc312ab04fe585e59fb6.zip |
Firefox
Diffstat (limited to 'test/e2e/func.js')
-rw-r--r-- | test/e2e/func.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/e2e/func.js b/test/e2e/func.js index 733225565..4ad0ea615 100644 --- a/test/e2e/func.js +++ b/test/e2e/func.js @@ -1,4 +1,5 @@ require('chromedriver') +require('geckodriver') const webdriver = require('selenium-webdriver') exports.delay = function delay (time) { @@ -6,13 +7,16 @@ exports.delay = function delay (time) { } -exports.buildWebDriver = function buildWebDriver (extPath) { +exports.buildChromeWebDriver = function buildChromeWebDriver (extPath) { return new webdriver.Builder() .withCapabilities({ chromeOptions: { args: [`load-extension=${extPath}`], }, }) - .forBrowser('chrome') .build() } + +exports.buildFirefoxWebdriver = function buildFirefoxWebdriver (extPath) { + return new webdriver.Builder().build() +} |