question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Question]: Playwright with selenium grid and proxy

See original GitHub issue

Hi, 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_URL has 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_proxy variable? 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:open
  • Created a year ago
  • Reactions:2
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
wodyjowskicommented, Oct 4, 2022
1reaction
wodyjowskicommented, Oct 3, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found