Back to Blog
Selenium ubuntu 20.045/30/2023 The “-ac” flag and allowing the program through Windows Firewall is pretty important. Allow connections to VcXsrv on Windows Firewall.This flag removes access control restrictions for connecting clients (which is okay as long as this server isn’t exposed on the open Internet and that the only client connecting is the Ubuntu instance) Start it up with the the command line parameter “-ac”. This setups the X server so that Windows can display graphical data coming from the Ubuntu instance. Geckodriver is there purely as a middle layer for Selenium to be able to interact with Firefox. VcXsrv starts up an X server on the Windows host machine, and what WSL will do is connect to this server to pass on the details of what programs need to be displayed (in this case, the browser window). WSL2 setup with Firefox installed (mine uses Ubuntu 20.04).The instructions are similar at a high level but there are some additional gotchas. This is a newer version of the post that I made before on how to run Selenium on WSL, but this one is on doing it in WSL2.
0 Comments
Read More
Leave a Reply. |