Add headless function for Firefox Options (#37752)

This commit is contained in:
Juliette Regimbal
2019-08-19 15:08:48 -07:00
committed by Sheetal Nandi
parent aa5b9deff7
commit 853cc1c8da
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -41,6 +41,12 @@ export class Options extends webdriver.Capabilities {
* @see https://github.com/mozilla/geckodriver
*/
useGeckoDriver(enable: boolean): Options;
/**
* Configures the geckodriver to start Firefox in headless mode.
* @return {!Options} A self reference.
*/
headless(): Options
}
/**
+1
View File
@@ -18,6 +18,7 @@ function TestFirefoxOptions() {
options = options.setBinary('binary');
options = options.setProfile('profile');
options = options.setProxy({ proxyType: 'proxy' });
options = options.headless();
}
function TestServiceBuilder() {