Support Options#excludeSwitches

This commit is contained in:
Kuniwak
2015-07-08 17:39:45 +09:00
parent 304a251979
commit 30c4a6ea12
2 changed files with 11 additions and 0 deletions
@@ -14,6 +14,7 @@ function TestChromeOptions() {
options = options.addArguments("a", "b", "c");
options = options.addExtensions("a", "b", "c");
options = options.excludeSwitches("a", "b", "c");
options = options.detachDriver(true);
options = options.setChromeBinaryPath("path");
options = options.setChromeLogFile("logfile");
+10
View File
@@ -62,6 +62,16 @@ declare module chrome {
addArguments(...var_args: string[]): Options;
/**
* List of Chrome command line switches to exclude that ChromeDriver by default
* passes when starting Chrome. Do not prefix switches with "--".
*
* @param {...(string|!Array<string>)} var_args The switches to exclude.
* @return {!Options} A self reference.
*/
excludeSwitches(...var_args: string[]): Options;
/**
* Add additional extensions to install when launching Chrome. Each extension
* should be specified as the path to the packed CRX file, or a Buffer for an