mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
Add headless function for Firefox Options (#37752)
This commit is contained in:
committed by
Sheetal Nandi
parent
aa5b9deff7
commit
853cc1c8da
+6
@@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -18,6 +18,7 @@ function TestFirefoxOptions() {
|
||||
options = options.setBinary('binary');
|
||||
options = options.setProfile('profile');
|
||||
options = options.setProxy({ proxyType: 'proxy' });
|
||||
options = options.headless();
|
||||
}
|
||||
|
||||
function TestServiceBuilder() {
|
||||
|
||||
Reference in New Issue
Block a user