You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That way I can leverage my selenium grid infrastructure, in the way it is now I need to create a separate infrastructure for the persistent context.
Motivation
That way we can leverage our selenium grid infrastructure, in the way it is now we need to create a separate infrastructure for the persistent context.
Thanks for your reply @Skn0tt , i'd like you to verify that efectively is creating a node in the selenium grid UI and taking the browser from it using the persistent context, going to localhost:4444 and checking that it's creating a new session.
Because if you have playwright installed it'll take the browser from your playwright installation, that's what happening in my case.
With selenium grid you dont have to do playwright install but only pip install playwright, using python.
Using my configuration, if I use the create_persistent_context() method give me the error that I need to execute playwright install
I can provide you a script to reproduce the error using python later
No need for a repro - I had a look at the source code and it looks like selenium grid support is only implemented for launch(), not launchPersistentContext():
I'm not sure how Persistent Context is implemented in Selenium Grid, so unsure if we can make it work with Selenium Grid. Let's collect feedback on this issue for prioritisation.
Activity
Skn0tt commentedon Apr 4, 2025
I don't see anything in the docs that forbids creating a persistent context with Selenium Grid. What errors did you run into trying it?
jfmartinr commentedon Apr 4, 2025
Thanks for your reply @Skn0tt , i'd like you to verify that efectively is creating a node in the selenium grid UI and taking the browser from it using the persistent context, going to localhost:4444 and checking that it's creating a new session.
Because if you have playwright installed it'll take the browser from your playwright installation, that's what happening in my case.
With selenium grid you dont have to do
playwright install
but onlypip install playwright
, using python.Using my configuration, if I use the create_persistent_context() method give me the error that I need to execute
playwright install
I can provide you a script to reproduce the error using python later
Skn0tt commentedon Apr 4, 2025
No need for a repro - I had a look at the source code and it looks like selenium grid support is only implemented for
launch()
, notlaunchPersistentContext()
:playwright/packages/playwright-core/src/server/browserType.ts
Line 93 in 1e04b69
I'm not sure how Persistent Context is implemented in Selenium Grid, so unsure if we can make it work with Selenium Grid. Let's collect feedback on this issue for prioritisation.
jfmartinr commentedon Apr 4, 2025
thanks so much for your quick response, i'll be attentive to any news