Setting Chrome Options
See original GitHub issueI’d like to add some extensions to my chrome instance, using the WebDriver JavaScript API I would do this:
var options = new chrome.Options().
addExtensions("pathToExtension");
var driver = new webdriver.Builder().
withCapabilities(webdriver.Capabilities.chrome()).
setChromeOptions(options).
build();
How would I do the same thing in protractor?
It looks like you are parsing the capabilities section of the JSON to work out how to build the driver object, but I don’t see anything in the structure that would accept a series of options.
As a side note is there a google group/mailing list for protractor, it would be good to put queries like this there rather than cluttering up the issues list.
Issue Analytics
- State:
- Created 10 years ago
- Comments:17 (9 by maintainers)
Top Results From Across the Web
WebDriver for Chrome - Capabilities & ChromeOptions
You can create an instance of ChromeOptions, which has convenient methods for setting ChromeDriver-specific capabilities.
Read more >Chrome Options & Desired Capabilities in Selenium Webdriver
Selenium Chrome Options class is used to manipulate various properties of Chrome driver · Desired Chrome Capabilities class provides a set of key ......
Read more >Capabilities & ChromeOptions - WebDriver for Chrome
Capabilities are options that you can use to customize and configure a ChromeDriver session. This page documents all ChromeDriver supported capabilities and how ......
Read more >Set Chrome Options for Selenium Tests. | BrowserStack Docs
Customize and configure ChromeDriver sessions for Selenium tests on BrowserStack Automate. A ChromeDriver session i.e. a test running on the Chrome browser, ...
Read more >Reset Chrome settings to default - Google Chrome Help
On your computer, open Chrome. · At the top right, click More More and then Settings. On Chromebook, Linux, and Mac: Click Reset...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi! You can set options in the Capabilities object - such as:
I was facing the similar problem when I tried to test chromiumembedded app (I need to set up chrome binary path).
The solution is set the binary key and also some other keys even there are empty (it is due to that capabilities is pased to the selenium-webdriver/chrome.js):
…even cleaner solution should be use the
Options
instance.