Re: [BangPypers] Howto run python selenium script on remote server

2011-09-29 Thread Balachandran Sivakumar
Hi, On Thu, Sep 29, 2011 at 8:53 PM, Saju M wrote: > Hi, > I tried to open one GUI app in server, but not working > > [root@c5 ~]# export DISPLAY=":1.0" > [root@c5 ~]# xclock > Error: Can't open display: :1.0 > IIRC, on most GNU/Linux machines, ssh -X user@host would allow launching GUI

Re: [BangPypers] Howto run python selenium script on remote server

2011-09-29 Thread Saju M
Hi, I tried to open one GUI app in server, but not working [root@c5 ~]# export DISPLAY=":1.0" [root@c5 ~]# xclock Error: Can't open display: :1.0 [root@c5 ~]# export DISPLAY=":0.0" [root@c5 ~]# xclock Error: Can't open display: :0.0 [root@c5 ~]# ps -ef | grep X root 3900 3897 0 11:18 t

Re: [BangPypers] Howto run python selenium script on remote server

2011-09-29 Thread Baiju M
On Thu, Sep 29, 2011 at 2:26 PM, Saju M wrote: > Hi, > I created a script using selenium and its working in my local system. > But when i trying to run it in remote machine (Centos), getting error. > This script should need to open a firefox browser. So i think the the > script could not open the

Re: [BangPypers] Howto run python selenium script on remote server

2011-09-29 Thread Saju M
Hi Balachandran Sivakumar, Thanks for reply * Yes is can see the firefox command on remote server's terminal. * I think remote server does not have GUI, so is it possible to run firefox. * When i run #firefox on remote server it not showing Error: no display specified. >>Does the remote machine

Re: [BangPypers] Howto run python selenium script on remote server

2011-09-29 Thread Syed Mushtaq
Does you server have X running ? If yes you might want to set the DISPLAY env variable . If no then you must either run X or install something like Xvfb[1] to make firefox run [1] http://en.wikipedia.org/wiki/Xvfb Thanks -Syed On Thu, Sep 29, 2011 at 2:26 PM, Saju M wrote: > Hi, > I created a

Re: [BangPypers] Howto run python selenium script on remote server

2011-09-29 Thread Balachandran Sivakumar
Hi, On Thu, Sep 29, 2011 at 2:26 PM, Saju M wrote: > Hi, > I created a script using selenium and its working in my local system. > But when i trying to run it in remote machine (Centos), getting error. > This script should need to open a firefox browser. So i think the the > script could not open

[BangPypers] Howto run python selenium script on remote server

2011-09-29 Thread Saju M
Hi, I created a script using selenium and its working in my local system. But when i trying to run it in remote machine (Centos), getting error. This script should need to open a firefox browser. So i think the the script could not open the firefox browser on remote machine(Server). Have any way to