Skip to content

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

Closed

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()

Activity

  1. alexanderankin commented on Jul 24, 2024

    @alexanderankin
    Member

    does #654 work for this?

  2. stevechow21 commented on Jul 25, 2024

    @stevechow21
    Author

    it works, thanks a lot

  3. added a commit that references this issue on Aug 1, 2024
    e02c1b3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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