Skip to content

Commit 81a3471

Browse files
committed
[JS] Add deprecation tag to chrome headless method SeleniumHQ#11467
1 parent 887da78 commit 81a3471

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

javascript/node/selenium-webdriver/chromium.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,12 @@ class Options extends Capabilities {
310310
}
311311

312312
/**
313+
* @deprecated Use {@link Options#addArguments} instead.
314+
* @example
315+
* options.addArguments('--headless=chrome'); (or)
316+
* options.addArguments('--headless');
317+
* @example
318+
*
313319
* Configures the driver to start the browser in headless mode.
314320
*
315321
* > __NOTE:__ Resizing the browser window in headless mode is only supported

0 commit comments

Comments
 (0)