groupon / Selenium-Grid-Extras

Simplify the management of the Selenium Grid Nodes and stabilize said nodes by cleaning up the test environment after the build has been completed
BSD 3-Clause "New" or "Revised" License
536 stars 209 forks source link

Need to customize the Selenium-Grid-Extras for local set up with firewall porxy #333

Open djavvadi opened 7 years ago

djavvadi commented 7 years ago

I am looking for suggestions/help on customizing the Selenium-Grid-Extras for local grid setup on loacl machines which contains all the drivers and selenium jar. Please help me to where I could configure the Selenium-Grid-Extras project such that the executable jar shouldn't connect to "selenium-release.storage.googleapis.com" to look for latest drivers and jars, but should be pointed to local directories instead.

Thanks in adavnce.

shankarkc commented 7 years ago

this is how you do it. You pass args as JAVA arguments

java -Dhttp.proxyHost=proxy.YOURDOMAIN.COM -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy.YOURDOMAIN.COM -Dhttps.proxyPort=8080   -jar SeleniumGridExtras-1.12.14-SNAPSHOT-jar-with-dependencies.jar

you might have to update the port 8080 to your proxy port if its different. Then it downloads the required driver jars automatically. Hope it helps

mcafeerun commented 6 years ago

@shankarkc,

In my case any http call to external domain (any non company website) is completely blocked in the VMs. There is no way to get around this.

We will usually download the selenium-server-jar and drivers from our pc and SFTP to thease VMs (which is our hub and nodes).

Is there any way we can supply drivers from local to this setup? I’m struck at step 0..

Appreciate any help!

shankarkc commented 6 years ago

@mcafeerun , sure there is. Grid extra downloads drivers if its not available. You need to have node_5555.json properly configured and driver binaries present in /tmp/webdriver folder If you need more details than this let me know. I can provide.... I do package like this. We don't download binaries from outside.