* Configures the target browser for clients created by this instance. * Any calls to #withCapabilities after this function will * overwrite these settings. * * You may also define the target browser using the SELENIUM_BROWSER * environment variable. If set, this enviro
(name, opt_version, opt_platform)
| 371 | * @return {!Builder} A self reference. |
| 372 | */ |
| 373 | forBrowser(name, opt_version, opt_platform) { |
| 374 | this.capabilities_.setBrowserName(name) |
| 375 | if (opt_version) { |
| 376 | this.capabilities_.setBrowserVersion(opt_version) |
| 377 | } |
| 378 | if (opt_platform) { |
| 379 | this.capabilities_.setPlatform(opt_platform) |
| 380 | } |
| 381 | return this |
| 382 | } |
| 383 | |
| 384 | /** |
| 385 | * Sets the proxy configuration for the target browser. |
no test coverage detected