[js] deprecate setHeadless for Firefox Options
@@ -299,6 +299,10 @@ class Options extends Capabilities {
}
/**
+ * @deprecated Use {@link Options#addArguments} instead.
+ * @example
+ * options.addArguments('-headless');
+ * @example
* Configures the geckodriver to start Firefox in headless mode.
*
* @return {!Options} A self reference.
