Can't run Selenium test with a Ubuntu 10.10
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
4 Replies
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.
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:
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.