Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
stevechow21 opened this issue Jul 24, 2024 · 2 comments · Fixed by #654 or #658
Closed

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

stevechow21 opened this issue Jul 24, 2024 · 2 comments · Fixed by #654 or #658

Comments

@stevechow21
Copy link

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()
@alexanderankin
Copy link
Collaborator

does #654 work for this?

@stevechow21
Copy link
Author

it works, thanks a lot

alexanderankin pushed a commit that referenced this issue Aug 14, 2024
🤖 I have created a release *beep* *boop*
---


##
[4.8.0](testcontainers-v4.7.2...testcontainers-v4.8.0)
(2024-08-14)


### Features

* Adding support for Cassandra and Scylla
([#167](#167))
([2d8bc11](2d8bc11))
* **compose:** ability to retain volumes when using context manager
([#659](#659))
([e1e3d13](e1e3d13))
* **compose:** add ability to get docker compose config
([#669](#669))
([8c28a86](8c28a86))
* **core:** add ability to do OR & AND for waitforlogs
([#661](#661))
([b1453e8](b1453e8))
* **new:** Added AWS Lambda module
([#655](#655))
([9161cb6](9161cb6))
* refactor network setup
([#678](#678))
([d5de0aa](d5de0aa))


### Bug Fixes

* Add Db2 support
([#673](#673))
([1e43923](1e43923))
* bring back cassandra driver bc otherwise how does it get installed for
cassandra module test run?
([#680](#680))
([71c3a1a](71c3a1a))
* **rabbitmq:** add `vhost` as parameter to RabbitMqContainer
([#656](#656))
([fa2081a](fa2081a))
* **selenium:** add Arg/Options to api of selenium container
([#654](#654))
([e02c1b3](e02c1b3)),
closes
[#652](#652)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants