I thought I'd report back what I did with this.
Basically, our webdriver tests were running fine headless on the Linux
server but would pop up windows when run locally and I would've wanted
this to be a decision of the programmer, whether he wants to see those
windows or not. The native Cocoa Firefox doesn't know about X Windows
so I'm guessing that there is no way of coercing it into a virtual
display. There is an X11 Firefox available, however, so I went ahead
and installed that on my Mac. Now, I could tell FirefoxBinary to use
/opt/local/bin/firefox-x11 instead of /Applications/Whatever/firefox
and force it into the virtual display -- if the "DISPLAY" environment
variable or a system property "virtual.display" was set.
To make FirefoxBinary pick up the firefox-x11 I had to move code from
org.openqa.selenium.firefox.internal.Executable over to my codebase.
Essentially I had to add "firefox-x11" to the list of binary names
that Executable#locateFirefoxBinaryFromPlatform would use while
searching for the binary. And "firefox-x11" needed to be first on the
list so that it would get picked up over the native Firefox when
DISPLAY was set.
Lasse
I know this is a *very* old thread, but have you had any luck?
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+...@googlegroups.com.
To post to this group, send email to webd...@googlegroups.com.
Visit this group at http://groups.google.com/group/webdriver?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.