MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / addBrowserCommandSwitches

Method addBrowserCommandSwitches

javascript/selenium-webdriver/ie.js:227–234  ·  view source on GitHub ↗

* Specifies command-line switches to use when launching Internet Explorer. * This is only valid when used with #forceCreateProcessApi. * * @param {...(string|!Array. )} args The arguments to add. * @return {!Options} A self reference.

(...args)

Source from the content-addressed store, hash-verified

225 */
226
227 addBrowserCommandSwitches(...args) {
228 let current = this.options_[Key.BROWSER_COMMAND_LINE_SWITCHES] || []
229 if (typeof current == 'string') {
230 current = current.split(' ')
231 }
232 this.options_[Key.BROWSER_COMMAND_LINE_SWITCHES] = current.concat(args).join(' ')
233 return this
234 }
235
236 /**
237 * Specifies command-line switches to use when launching Internet Explorer.

Callers 1

options_test.jsFile · 0.80

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected