[java] Add deprecation annotation to Chromium headless metho
Related to
@@ -186,6 +186,12 @@ public T setExperimentalOption(String name, Object value) {
return (T) this;
}
+ /**
+ * @deprecated Use {@link #addArguments(String...)}.
+ * Pass '--headless=chrome' as argument.
+ * Example: `addArguments("--headless=chrome")`.
+ */
+ @Deprecated
public T setHeadless(boolean headless) {
args.remove("--headless");
if (headless) {
