Skip to content

Firefox Headless Support #42

@corbett3289

Description

@corbett3289

When you attempt to open firefox through watir using the webdriver::UserAgent, the headless option is currently an unknown data element for the gem.

[21] pry(main)> mobile = Webdriver::UserAgent.driver(browser: :firefox, headless: true, agent: :iphone)
ArgumentError: unknown option: {:headless=>true}

This is required in order for this portion of the gem to be functional. As firefox will not run without headless mode set to true. The below code showcases the error code returned when requested without headless.

[25] pry(main)> mobile = Webdriver::UserAgent.driver(browser: :firefox, agent: :iphone)
Selenium::WebDriver::Error::UnknownError: invalid argument: can't kill an exited process

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions