Created
September 9, 2020 22:26
-
-
Save seleniumgists/86c0b39ff5afbccf6a314418ed7352cc to your computer and use it in GitHub Desktop.
generated automatically from #selenium on seleniumhq slack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let chromeCapabilities = Capabilities.chrome() | |
let chromeOptions = { | |
'args': ['load-extension=/app/build'] | |
} | |
chromeCapabilities.set('chromeOptions', chromeOptions) | |
export const driver = new Builder() | |
.forBrowser('chrome') | |
.usingServer(SERVER || '<http://localhost:4444/wd/hub>') | |
.withCapabilities(chromeCapabilities) | |
.build()``` | |
And my background script is listening for this event: | |
```chrome.browserAction.onClicked.addListener((tab) => {}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment