Tuesday, 15 July 2014

firefox - Selenium FirefoxDriver in Headless get error -



firefox - Selenium FirefoxDriver in Headless get error -

i'm getting next error when seek open firefox in headless mode:

failed connect binary firefoxbinary(/usr/bin/firefox) on port 7055; process output follows: (process:27527): glib-critical **: g_slice_set_config: assertion 'sys_page_size == 0' failed xlib: extension "randr" missing on display ":1". (firefox:27527): gconf-warning **: client failed connect d-bus daemon: failed connect socket /tmp/dbus-vbjdthn8w2: connection refused build info: version: '2.44.0', revision: '76d78cf', time: '2014-10-23 20:03:00' scheme info: host: 'cpro22808', ip: '176.153.5.11', os.name: 'linux', os.arch: 'amd64', os.version: '3.13.0-32-generic', java.version: '1.7.0_55' driver info: driver.version: firefoxdriver

i'm using ubuntu 14.04, firefox 33, selenium 2.44, tomcat7, xvfb.

i'm starting xvfb that:

xvfb :1 -ac -screen 0 1024x768x24

my java code:

string xport = system.getproperty("lmportal.xvfb.id", ":1"); firefoxbinary firefoxbinary = new firefoxbinary(); firefoxbinary.setenvironmentproperty("display", xport); webdriver = new firefoxdriver(firefoxbinary, null);

i spent several days on , tried lot of things , nil solve. can help me?

firefox ubuntu selenium selenium-webdriver xvfb

No comments:

Post a Comment