-
Notifications
You must be signed in to change notification settings - Fork 296
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
fix: Add selenium video support #6 #364
fix: Add selenium video support #6 #364
Conversation
65964f3
to
49cb763
Compare
49cb763
to
a4f85d0
Compare
a44a8ec
to
79698c3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm for 4.1 or similar
"firefox": "selenium/standalone-firefox:4.13.0-20231004", | ||
"chrome": "selenium/standalone-chrome:4.13.0-20231004" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably dont want to change the images, is this necessary? or what is the motivation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will fix this - thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the image because it's outdated and no longer supported.
1c051ed
to
c8b481e
Compare
|
||
def stop(self, force=True, delete_volume=True) -> None: | ||
if self.video: | ||
# get_wrapped_container().stop -> stop the container |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should renamed video.stop to video.remove?
super().start() | ||
|
||
self.video \ | ||
.with_kwargs(network=network.name) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I encountered an issue and would appreciate it if you could review it:
using with_network
(network.connect
), I aim to block the container's access from the host via a port.
Providing the network in the container run command should resolve this issue.
Note:
Using with_network, along with adding a delay before connecting to the network and after running the container, resolved the issue.
278c2bc
to
79727ea
Compare
4b18e98
to
fc58c7c
Compare
fc58c7c
to
655db28
Compare
4742e7a
to
1a8f372
Compare
1a8f372
to
6f40428
Compare
@alexanderankin I've just finished rebasing the branch onto main. |
looks like tests are not passing. you can run the tests locally by cd into the directory, |
I would try soon, thanks :) |
@alexanderankin The problem stemmed from permissions. The tempfile.TemporaryDirectory function generated a folder lacking the necessary permissions for writing within the container. Now it is working! |
🤖 I have created a release *beep* *boop* --- ## [4.4.1](testcontainers-v4.4.0...testcontainers-v4.4.1) (2024-05-14) ### Bug Fixes * Add memcached container ([#322](#322)) ([690b9b4](690b9b4)) * Add selenium video support [#6](#6) ([#364](#364)) ([3c8006c](3c8006c)) * **core:** add empty _configure to DockerContainer ([#556](#556)) ([08916c8](08916c8)) * **core:** remove version from compose tests ([#571](#571)) ([38946d4](38946d4)) * **keycloak:** add realm imports ([#565](#565)) ([f761b98](f761b98)) * **mysql:** Add seed support in MySQL ([#552](#552)) ([396079a](396079a)) * url quote passwords ([#549](#549)) ([6c5d227](6c5d227)) --- 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>
Support video in selenium testcontainer.
Changes made:
with_video
.