mozilla / geckodriver

WebDriver for Firefox
https://firefox-source-docs.mozilla.org/testing/geckodriver/
Mozilla Public License 2.0
7.03k stars 1.51k forks source link

Cannot process with 'headless' variable #2095

Closed RatexMak closed 1 year ago

RatexMak commented 1 year ago

System

When I was writing a testcase with java, I passed 'headless=ture' to gechodriver. Howerver, it seems that geckodriver is not take 'headless' as a variable?

image

whimboo commented 1 year ago

This is not a problem with geckodriver given that the headless option is not part of the capabilities as passed from Selenium. As such please consult the Selenium documentation in how to use that flag correctly. Thanks.