OriginalPostID-215593
Discussion posts and replies are publicly visible
Hi Priya,
I am facing a similar problem. I installed fitnesse in a linux machine and I am trying to run a fitnesse script from the browser. In the execution log i am getting the below error.
Standard Error: Jul 17, 2018 1:50:12 PM org.openqa.selenium.firefox.FirefoxOptions toCapabilities INFO: Preferring the firefox binary in these options (/usr/lib64/firefox/firefox rather than /usr/lib64/firefox/firefox) Jul 17, 2018 1:50:12 PM org.openqa.selenium.firefox.FirefoxOptions toCapabilities INFO: Preferring the firefox binary in these options (/usr/lib64/firefox/firefox rather than /usr/lib64/firefox/firefox) 1531815612235 geckodriver INFO geckodriver 0.21.0 1531815612239 geckodriver INFO Listening on 127.0.0.1:30930 1531815612435 mozrunner::runner INFO Running command: "/usr/lib64/firefox/firefox" "-marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofile.4lCUxy8nhgNs" Error: no DISPLAY environment variable specified java.lang.NullPointerException at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:770) at org.openqa.selenium.support.ui.FluentWait.<init>(FluentWait.java:96)
I have installed XVFB and X11.
If I open a terminal and execute "/usr/lib64/firefox/firefox" "-marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofile.4lCUxy8nhgNs" manually, it works fine and I can see a ton of logs being written.
I have also set the DISPLAY environment variable in the .bash_profile. Still it shows "no DISPLAY environment variable specified", when i Test from browser.
Any suggestions will be appreciated.
Regards,
Sidhant Behura
Hi Priya, I have XVFB running in the background. [root@localhost ~]# ps aux | grep Xvfb root 7571 0.0 0.0 112704 956 pts/8 S+ 14:10 0:00 grep --color=auto Xvfb root 21070 0.0 0.4 218644 19340 pts/0 Sl 12:40 0:00 /usr/bin/Xvfb :1 -screen 0 1024x768x24 Can you please give an example on how to start Fitnesse with XFVB command. Regards, Sidhant Behura