Skip to content

Options not applied to Chrome in Selenium 4#9281

Description

@GergelyKalmar

馃挜 Regression Report

It seems that options are not applied properly to Chrome driver anymore in Selenium 4.

Last working Selenium version

Worked up to version: 3.141.0

Stopped working in version: 4.0.0.b1

To Reproduce

Detailed steps to reproduce the behavior:

>>> from selenium import webdriver
>>> options = webdriver.ChromeOptions()
>>> options.add_argument('--headless')
>>> options.add_argument('--window-size=1800,800')
>>> driver = webdriver.Chrome(options=options)

Expected behavior

I would expect Chrome to start in headless mode with the right window size, but it seems that the chosen options are ignored.

Perhaps the options need to be specified differently in 4.0 but I have not been able to find any documentation on that.

Environment

OS: Ubuntu 20.04 LTS
Browser: Chrome
Browser version: 89.0.4389.82 (Official Build) (64-bit)
Browser Driver version: ChromeDriver 89.0.4389.23
Language Bindings version: Python 4.0.0.b1

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-pyPython Bindings

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions