webdriver-user-agent
webdriver-user-agent copied to clipboard
Firefox Headless Support
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
@corbett3289 Are you able to use the headless gem?
@headless = Headless.new
@headless.start
@driver = Webdriver::UserAgent.driver(browser: :firefox, agent: :iphone)
# ...
Hi @corbett3289 Did you have a chance to try using headless?
Haven't had the opportunity to try this out just yet. Will attempt next week and will report back.
On Fri, Sep 6, 2019 at 3:50 AM Sam [email protected] wrote:
Hi @corbett3289 https://github.com/corbett3289 Did you have a chance to try using headless?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alisterscott/webdriver-user-agent/issues/42?email_source=notifications&email_token=AMEIKUETL75FHXQS73RVLEDQIIKVNA5CNFSM4HY2EAT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6CGOXY#issuecomment-528770911, or mute the thread https://github.com/notifications/unsubscribe-auth/AMEIKUEMFZC4H37EVZNWILDQIIKVNANCNFSM4HY2EATQ .
@corbett3289 - please confirm if suggestion made by @samnissen worked for you or not. If we don't hear a response within few days, I will close this issue assuming it worked for you.