Skip to content

Allow setting browser commandline args via capabilities #89

@jan-imrich

Description

@jan-imrich

When using this driver from behat, there is no way of setting the browser commandline args (ie. --headless or --start-maximized for chrome).

mink-selenium2-driver allows to specify chromeOptions under extra_capabilities (and similar with other browsers). It would be nice if it was compatible, so you could switch between mink-phpwebdriver-extension and mink-selenium2-driver.

I have tried to hardcode
$capabilities['goog:chromeOptions']['args'] = ['--start-maximized'];
into buildDriver() metod and it seems to work, so it should be a matter of just passing those arguments through.

Maybe there already is other way of doing this, but I couldn't figure it out.

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