Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Question: where to add the Chrome options for BrowserWebDriverContainer #652

@stevechow21

Description

@stevechow21

What are you trying to do?

start the Chrome with options, such as ('--disable-dev-shm-usage')

Where are you trying to do it?

add argument

Runtime environment

i want to add chrome options, but i don't know where to add the options, below scripts i added options in the method BrowserWebDriverContainer, it seems no work

        options = Options()
        options.add_argument('--disable-dev-shm-usage')
        options.add_argument('--headless')
        dr = BrowserWebDriverContainer(capabilities=DesiredCapabilities.CHROME, options=options)
        dr.start()
        driver = dr.get_driver()
        driver.maximize_window()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions