aerokube / selenoid

Selenium Hub successor running browsers within containers. Scalable, immutable, self hosted Selenium-Grid on any platform with single binary.
https://aerokube.com/selenoid/latest/
Apache License 2.0
2.6k stars 324 forks source link

Is it possible to let a chrome runner always connected to the hub ? #955

Closed AlexGrs closed 8 months ago

AlexGrs commented 4 years ago

We have a use case where we would need to run our tests on an already up and running chrome node instead of having a docker launched on the fly when the test begins? So we basically need to have something close to a classic Selenium Grid where you have the grid and chrome nodes on standby waiting for tests to start.

The reason we need this is we want to perform tests with Web Browser having in the cache the assets when performing the test instead of starting with a fresh browser.

Is there any possibilities with Selenoid to do so? I looked at the doc but nothing really came up after reading it.

vania-pooh commented 4 years ago

@AlexGrs Selenoid is always launching a fresh browser container, however nothing prevents you from pinging a running session so it remains alive. Or you could set a big sessionTimeout value and reuse the same session_id in subsequent tests.

AlexGrs commented 4 years ago

Are you aware of any volume we could mount in order to preserve the cache between sessions ?

I feel this solution of timeout or keeping the session alive a small hack. Would a PR on this would be acceptable for you? If yes if you have some indications of the selenoid way of doing so that would be great.

aandryashin commented 4 years ago

Selenoid will always start new container for new session. Even driver always start browser with clean cache. You can start session with custom profile with prefilled cache.

ср, 22 июл. 2020 г., 17:26 Alexandre Grais notifications@github.com:

Are you aware of any volume we could mount in order to preserve the cache between sessions ?

I feel this solution of timeout or keeping the session alive a small hack. Would a PR on this would be acceptable for you? If yes if you have some indications of the selenoid way of doing so that would be great.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/aerokube/selenoid/issues/955#issuecomment-662484849, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKY23KVZS7LK6XPRGMOGALR43ZHZANCNFSM4PEPSCFQ .

github-actions[bot] commented 9 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.