Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Apr 02, 2011 6:15 pm 
Offline
Newbie

Joined: Sat Apr 02, 2011 6:14 pm
Posts: 2
Hi,

I have a Linode and would like to run some Salenium test on it. But I am getting the following errors:

unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055) (Selenium::WebDriver::Error::WebDriverError)

The reason is that firefox can't be start up through command line. I also tried the followings:

~$ firefox
Error: no display specified

I understand there shouldn't be any display attached to the server. But is there any solution to start a firefox from command line?

Thanks,
Owen


Last edited by jingweno on Sun Apr 03, 2011 11:39 am, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Sat Apr 02, 2011 6:38 pm 
Offline
Senior Member

Joined: Sat Dec 13, 2003 12:39 pm
Posts: 98
I've run selenium on Linode by setting up X and VNC on the server so I can VNC in to it and watch Firefox play the Selenium scripts.

It worked really well, even used it as a sort of monitor to constantly play the selenium scripts against the live site and alert on failure. VNC was very convenient because when it failed I could see what the failed web page looked like in firefox.

So I'd suggest setting up and x environment and VNC server, then run firefox in that.


Top
   
 Post subject:
PostPosted: Sat Apr 02, 2011 8:53 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
If you're running a reasonable OS locally (not Windows), you can add the -X option to ssh's command line and it will proxy requests to your local X server. firefox will, of course, perish when your ssh connection goes away, but it will get past the immediate problem.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Sun Apr 03, 2011 11:41 am 
Offline
Newbie

Joined: Sat Apr 02, 2011 6:14 pm
Posts: 2
Hi

thanks for the advice! Do you have any useful links on setting up minimum x environment and VNC server on Ubuntu?

Actually I am running the selenium through Hudson/Jenkins, would it still work that way?

Thanks in advance,
Owen

kiomava wrote:
I've run selenium on Linode by setting up X and VNC on the server so I can VNC in to it and watch Firefox play the Selenium scripts.

It worked really well, even used it as a sort of monitor to constantly play the selenium scripts against the live site and alert on failure. VNC was very convenient because when it failed I could see what the failed web page looked like in firefox.

So I'd suggest setting up and x environment and VNC server, then run firefox in that.


Top
   
 Post subject:
PostPosted: Sun Apr 03, 2011 6:28 pm 
Offline
Senior Member

Joined: Sat Dec 13, 2003 12:39 pm
Posts: 98
Googling for "ubuntu remote vnc howto headless" shows a few decent looking howtos:

http://www.scotttyee.com/blog/2009/12/0 ... -with-vnc/

http://stevenharman.net/blog/archive/20 ... u-box.aspx


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group