[Question]: Playwright with selenium grid and proxy
See original GitHub issueHi, I’m currently using Selenium chromedriver + Xunit to run automated frontend tests in C#. Test runs (Xunit invocations) are managed by web application and Selenium is running on Selenium Grid 4. I wanted to try out Playwright but I’ve encountered two problems:
- Why
SELENIUM_REMOTE_URLhas to be provided by environment URL and it can’t be injected from code? In case I want to control if the tests should be run locally/remotely I have to change environmental variable and it looks hacky. - Is there a way to provide proxy for selenium grid other than setting
http_proxyvariable? My app runs in container and I don’t want to pass the whole network traffic through proxy.
I’ve asked this question in main Playwright repo but I guess this is a better place.
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:8 (5 by maintainers)
Top Results From Across the Web
8 - Run Playwright Tests using Jenkins and Selenium 4 GRID
8 - Run Playwright Tests using Jenkins and Selenium 4 GRIDSchedule a meeting in case of any ...
Read more >Playwright is not running tests on Selenium Grid + Docker
I'm trying to run some Playwright (Node.js) tests on Docker through Selenium Grid, but the tests are failing because of timeout.
Read more >Moon - A cross browser Selenium, Cypress, Playwright and ...
Completely stateless. Selenoid and Selenium Grid 3.x store in memory information about currently running browser sessions. Selenium Grid 4.x is using a key- ......
Read more >How to check the proxy firewall and DNS configuration?
Test your websites, web-apps or mobile apps seamlessly with LambdaTest. Start Free Testing. LambdaTest. Earn resume-worthy Selenium certifications that help you ...
Read more >How to set proxy in Selenium : Tutorial | BrowserStack
Try running the code detailed above to set the proxy for Chrome using Selenium WebDriver. Remember that Selenium tests must be run on...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@mxschmitt?
Can’t you just do this? You already pass some environment variables when creating Node.js process, how about passing more?