Skip to content

Instantly share code, notes, and snippets.

@seleniumgists
Created September 9, 2020 22:26
Show Gist options
  • Save seleniumgists/86c0b39ff5afbccf6a314418ed7352cc to your computer and use it in GitHub Desktop.
Save seleniumgists/86c0b39ff5afbccf6a314418ed7352cc to your computer and use it in GitHub Desktop.
generated automatically from #selenium on seleniumhq slack
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