Java/Webdriver - opening a Firefox instance - firefoxbinary and setenvironmentproperty -
im trying launch firefox instance webdriver, want instruct use xvfb display. think wrong code, though
firefoxbinary ffox = new firefoxbinary(); ffox.setenvironmentproperty("display", "22"); driver = new firefoxdriver();
as can see, @ no point there mention "new firefoxdriver()" use ffox setting, when put ffox in brackets of firefoxdriver, code goes red, because can't accept such thing.
is there wrong code?
you need set system property use ff binary. refer here http://code.google.com/p/selenium/wiki/firefoxdriver
Comments
Post a Comment