Profile cover photo
Profile photo
Valerii Kuznetsov
104 followers -
Zend Certified Engineer, expereinced server-side developer, front-end developer, Angular, PHP and Java
Zend Certified Engineer, expereinced server-side developer, front-end developer, Angular, PHP and Java

104 followers
About
Communities and Collections
View all
Posts

Post has attachment
PhotoPhotoPhotoPhotoPhoto
June 1, 2015
7 Photos - View album
Add a comment...

Post has attachment
Valerii Kuznetsov commented on a post on Blogger.
LoL, last two weeks I was working on exactly the same thing :)
I ended up with google chrome driver, but it's very small difference.

One tip. To get better debugging capabilities, you can connect to Xvfb using VNC.

Install ratpoison (it is minimalistic GDM), x11vnc server and run it on xvfb display:

# apt-get -y install xvfb x11vnc ratpoison xterm

Then I wrote this script:
#!/bin/bash
export DISPLAY=:99
Xvfb $DISPLAY -screen 0 1366x768x24 -ac &
# Wait while xvfb finish initialization
sleep 5
ratpoison &

Afterwards you can connect from your dev machine using ssh port forwarding and running vnc server:

# ssh -L 5900:localhost:5900 <user>@<host>'x11vnc -localhost -display :99

Where <user> and <host> is where your Xvfb running.

Now, run your vnc client using:
address: localhost
port: 5900
Add a comment...

Post has attachment
PhotoPhotoPhoto
2015-01-29
4 Photos - View album
Add a comment...

Post has attachment
PhotoPhotoPhoto
3D Printer
3 Photos - View album
Add a comment...
Wait while more posts are being loaded