![]() ![]() This acts purely as the API interface that allows Selenium to interact with Firefox. Start up VcXsrv as described in the above and then try to open Firefox. The IP address listed there is the IP address of the X server that will be used for displaying the browser window. This will configure your DISPLAY variable to use the IP address listed in the nf file. zshrc, etc.) export DISPLAY=$(ip route | awk ''):0 bashrc (or for whatever terminal you use, maybe. When I didn’t do this, Ubuntu would give me cryptic error messages like “Broadway display type not supported”, but once I set up these access controls, everything was fine. 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). ![]() ![]()
0 Comments
Leave a Reply. |