← All tasks
pythontestcontainers/testcontainers-python #652Not a task: already works

Question: where to add the Chrome options for BrowserWebDriverContainer

envgap__testcontainers__testcontainers-python-652

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
71c3a1a29e1839de91f05c6bcd4c620122195a94
Manifest
pyproject.toml
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

testcontainers/testcontainers-python #652 · read the original issue
<!-- feel free to remove any irrelevant section(s) below -->



## 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





```bash

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

```



Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]