mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Support Options#excludeSwitches
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user