|
|
@ -42,13 +42,13 @@ async function setupBrowserAndExtension ({ browser, extPath }) { |
|
|
|
if (browser === 'chrome') { |
|
|
|
if (browser === 'chrome') { |
|
|
|
driver = buildChromeWebDriver(extPath) |
|
|
|
driver = buildChromeWebDriver(extPath) |
|
|
|
extensionId = await getExtensionIdChrome(driver) |
|
|
|
extensionId = await getExtensionIdChrome(driver) |
|
|
|
extensionUri = `chrome-extension://${extensionId}/popup.html` |
|
|
|
extensionUri = `chrome-extension://${extensionId}/home.html` |
|
|
|
} else if (browser === 'firefox') { |
|
|
|
} else if (browser === 'firefox') { |
|
|
|
driver = buildFirefoxWebdriver() |
|
|
|
driver = buildFirefoxWebdriver() |
|
|
|
await installWebExt(driver, extPath) |
|
|
|
await installWebExt(driver, extPath) |
|
|
|
await delay(700) |
|
|
|
await delay(700) |
|
|
|
extensionId = await getExtensionIdFirefox(driver) |
|
|
|
extensionId = await getExtensionIdFirefox(driver) |
|
|
|
extensionUri = `moz-extension://${extensionId}/popup.html` |
|
|
|
extensionUri = `moz-extension://${extensionId}/home.html` |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
throw new Error(`Unknown Browser "${browser}"`) |
|
|
|
throw new Error(`Unknown Browser "${browser}"`) |
|
|
|
} |
|
|
|
} |
|
|
|