Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 178040

Using VMRUN to execute selenium process in Ubuntu VM without XVFB

$
0
0

I'm using vmrun.exe from VMware Workstation to start an Ubuntu 16 desktop VM and launch a Java selenium Firefox process in it. I can start and launch the script however I would like the selenium process to be visible in case a user would like to monitor it. It gives the following error when trying to launch firefox with a visible GUI.

org.openqa.selenium.WebDriverException:Failed to connect to binary FirefoxBinary(/home/vmdops/firefox/firefox) on port 7055; process output follows:Error: GDK_BACKEND does not match available displays

The following bash script is used to launch the process

java -jar seleniumProcess.jar

I can execute the process headless with XVFB and run the selenium process in memory however then I cannot view the process running visually.

/usr/bin/Xvfb:1& export DISPLAY=:1 java -jar seleniumProcess.jar

What is the proper terminology to explain why the firefox browser cannot be displayed?

Is there anyway to launch the selenium process from VMRUN that allows the firefox browser to display normally?


Viewing all articles
Browse latest Browse all 178040

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>