teamcfadvance / CFSelenium

A native Selenium WebDriver binding for ColdFusion
Apache License 2.0
81 stars 32 forks source link

Can not get it running on Ubuntu / Lucee #32

Open richardhughes260 opened 7 years ago

richardhughes260 commented 7 years ago

Hi Folks!

I can not get it running on Ubuntu / Lucee.

Are there issues that I am unaware of?

Does anyone have a VM with it configured?

Yamaha32088 commented 6 years ago

@richardhughes260 I just tackled this issue my self and I found out the problem has to do with Xvfb. Xvfb needs to be started in the same session as the server so basically when you start Lucee it needs to also create an instance of Xvfb. The fix for me was to add a couple lines to the setenv.sh file and restart Lucee.

Edit the file /opt/lucee/tomcat/bin/setenv.sh and add the following two lines:

Xvfb :101 &
export DISPLAY=:101;

The first line starts an instance of Xvfb in the background, that is what the ampersand is for. The next line will export the DISPLAY system variable that is used by the driver. You should be good to go after making these changes.

richardhughes260 commented 6 years ago

THANKS! When I get back to my lab, I will test it out.

On Thu, Feb 15, 2018 at 2:26 PM, Brandon Brown notifications@github.com wrote:

@richardhughes260 https://github.com/richardhughes260 I just tackled this issue my self and I found out the problem has to do with Xvfb. Xvfb needs to be started in the same session as the server so basically when you start Lucee it needs to also create an instance of Xvfb. The fix for me was to add a couple lines to the setenv.sh file and restart Lucee.

Edit the file /opt/lucee/tomcat/bin/setenv.sh and add the following two lines:

Xvfb :101 & export DISPLAY=:101;

The first line starts an instance of Xvfb in the background, that is what the ampersand is for. The next line will export the DISPLAY system variable that is used by the driver. You should be good to go after making these changes.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/teamcfadvance/CFSelenium/issues/32#issuecomment-366034937, or mute the thread https://github.com/notifications/unsubscribe-auth/ABfUYRGa1Q6k19nx3Wt91PB_OLeFhwx6ks5tVITwgaJpZM4Nc_lJ .

richardhughes260 commented 6 years ago

@Yamaha32088 I have had ZERO luck getting CFSelenium to run.

Years ago, NBD, still banging head against wall. Is it possible you can post the steps in a blog?

Yamaha32088 commented 6 years ago

@richardhughes260 sure I will see what my schedule looks like. I can come up with something I am sure maybe I will make a video.

richardhughes260 commented 6 years ago

YOU DA MAN!

On Tue, Feb 20, 2018 at 9:15 AM, Brandon Brown notifications@github.com wrote:

@richardhughes260 https://github.com/richardhughes260 sure I will see what my schedule looks like. I can come up with something I am sure maybe I will make a video.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/teamcfadvance/CFSelenium/issues/32#issuecomment-366990076, or mute the thread https://github.com/notifications/unsubscribe-auth/ABfUYSE67NB1-6EOCAeBxF7rMpQpbMY3ks5tWtOKgaJpZM4Nc_lJ .