Solaris support for WebDriver

276 views
Skip to first unread message

kapy

unread,
Jul 14, 2010, 11:54:17 AM7/14/10
to webdriver
Hi,

I'm trying to run a testsuite with standalone WebDriver 0.9.7376, on
Solaris 9 x86 and Solaris 10 x86, Firefox 2.0.0.20 and 3.0.x
respectively.
However, tests are failing with the following exception:

<pre><code>
[testng] org.openqa.selenium.WebDriverException:
org.openqa.selenium.WebDriverException: Failed to connect to binary
FirefoxBinary(/opt/sfw/bin/firefox) on port 7055; process output
follows:
[testng] ?
[testng] System info: os.name: 'SunOS', os.arch: 'x86', os.version:
'5.9', java.version: '1.6.0_18'
[testng] Driver info: driver.version: firefox
[testng] System info: os.name: 'SunOS', os.arch: 'x86', os.version:
'5.9', java.version: '1.6.0_18'
[testng] Driver info: driver.version: firefox
[testng] at
org.openqa.selenium.firefox.internal.ExtensionConnectionFactory.connectTo(ExtensionConnectionFactory.java:
46)
[testng] at
org.openqa.selenium.firefox.FirefoxDriver.connectTo(FirefoxDriver.java:
139)
[testng] at
org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:
129)
[testng] at
org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:
109)
[testng] at
org.jboss.wfk.example.common.test.webdriver.FirefoxAjaxDriver.<init>(FirefoxAjaxDriver.java:
44)
[testng] at
org.jboss.wfk.example.common.test.webdriver.FirefoxAjaxDriver.<init>(FirefoxAjaxDriver.java:
40)
[testng] at
org.jboss.wfk.example.common.test.webdriver.AjaxWebDriverFactory
$Browser$1.getDriver(AjaxWebDriverFactory.java:39)
[testng] at
org.jboss.wfk.example.common.test.webdriver.AjaxWebDriverFactory.getDriver(AjaxWebDriverFactory.java:
58)
[testng] at
org.jboss.wfk.example.common.test.webdriver.AjaxWebDriverTest.createDriver(AjaxWebDriverTest.java:
50)
[testng] Caused by: org.openqa.selenium.WebDriverException: Failed
to connect to binary FirefoxBinary(/opt/sfw/bin/firefox) on port 7055;
process output follows:
[testng] ?
[testng] System info: os.name: 'SunOS', os.arch: 'x86', os.version:
'5.9', java.version: '1.6.0_18'
[testng] Driver info: driver.version: firefox
[testng] at
org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.connectToBrowser(NewProfileExtensionConnection.java:
68)
[testng] at
org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.<init>(NewProfileExtensionConnection.java:
57)
[testng] at
org.openqa.selenium.firefox.internal.ExtensionConnectionFactory.connectTo(ExtensionConnectionFactory.java:
44)
[testng] ... 32 more
[testng] Caused by:
org.openqa.selenium.firefox.NotConnectedException: Failed to start up
socket within 45000
[testng] at
org.openqa.selenium.firefox.internal.AbstractExtensionConnection.connectToBrowser(AbstractExtensionConnection.java:
143)
[testng] at
org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.connectToBrowser(NewProfileExtensionConnection.java:
66)
[testng] ... 34 more
[testng] ... Removed 24 stack frames
</code></pre>

Manual verification in VNC had shown that Firefox binary is launched
well, but WebDriver string in status bar is missing. I expect that the
plugin was not correctly installed.

I went through the source for the WebDriver release in SVN and it
seams to me that the build does not contain support for Solaris. My
question is, if I build the source on Solaris and add resulting
library to platform/SunOS_x86-gcc3, and repack the webdriver-firefox
jar for Solaris, will it be sufficient?

Many thanks,

Karel

Julian Harty

unread,
Jul 21, 2010, 3:16:58 AM7/21/10
to webd...@googlegroups.com
Karel,
Has anyone else replied to you off this list? If not I suspect it'll be because you know more about Solaris than many. I'd encourage you to try your suggestion then see if you can get at least some of the tests for the firefox driver to run. I've not been actively working with Solaris for about 5 years or WebDriver for quite a few months so I'm a little out of touch, however perhaps I can help if you manage to make some progress. 


Julian


--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.


Karel Piwko

unread,
Jul 21, 2010, 10:12:09 AM7/21/10
to webdriver
Hi Julian,

Nobody contacted me before. I'm currently stuck with getting
development environment on
Solaris machine installed, but I'll surely inform about the progress.

Meantime, I tried simply to add <em:targetPlatform>SunOS</
em:targetPlatform>
into install.rdf and I mirrored Linux so library under platform/
SunOS_x86-gcc3/components since
Solaris (10) claims binary compatibility with Linux, however without
success.

I've seen in SVN that WebDriver 0.9.7376 contains the same Firefox
extension as Selenium 2.x branch, so this effort could be used
to improve coverage of Selenium 2.0 as well.

Karel


On Jul 21, 9:16 am, Julian Harty <julianha...@gmail.com> wrote:
> Karel,
> Has anyone else replied to you off this list? If not I suspect it'll be
> because you know more about Solaris than many. I'd encourage you to try your
> suggestion then see if you can get at least some of the tests for the
> firefox driver to run. I've not been actively working with Solaris for about
> 5 years or WebDriver for quite a few months so I'm a little out of touch,
> however perhaps I can help if you manage to make some progress.
>
> Julian
>
> > webdriver+...@googlegroups.com<webdriver%2Bunsubscribe@googlegroups .com>
> > .

Julian Harty

unread,
Jul 21, 2010, 10:57:27 AM7/21/10
to webd...@googlegroups.com
Karel,
ok, thanks for the update. I think you'll need Java and Rake installed, and subversion to checkout the project's files. Perhaps you'd be willing to document what you install and any problems (and workarounds, etc) so that we can make the process easier for others to follow in future?

I'm not going to be able to give you any practical help this week as I'm fully occupied with other work and commitments, however perhaps I can spend some time early next week investigating (which is also why having your notes on installing the tools would be useful since I'm so rusty on Solaris).

Good luck I hope the process becomes relatively painless to get everything up and running from this point.


Julian

To unsubscribe from this group, send email to webdriver+...@googlegroups.com.

Karel Piwko

unread,
Jul 22, 2010, 9:59:18 AM7/22/10
to webd...@googlegroups.com
Julian,

there's no reason to worry about time this and next week, my access to
Solaris machine is still pending because the responsible guy is on
vacation.

He's returning in the beginning of the next week, so I can't start
taking installation notes and making any progress anyway.

Karel

> +unsub...@googlegroups.com.


> For more options, visit this group at
> http://groups.google.com/group/webdriver?hl=en.
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "webdriver" group.
> To post to this group, send email to webd...@googlegroups.com.
> To unsubscribe from this group, send email to webdriver

> +unsub...@googlegroups.com.

Eran M.

unread,
Jul 22, 2010, 5:12:49 PM7/22/10
to webd...@googlegroups.com
Hi,

Not Solaris specific, but let's see if these steps help:
* Use Selenium 2.0a5 - the version you're trying to use is before Selenium and WebDriver have merged and is considered Ancient History.
* The only thing you need is Java to run WebDriver. Ruby is required if you want to build it.
* Start up Firefox manually (3.0 and above - 2 is not supported anymore) and try to install the XPI manually. Does Firefox show the WebDriver box after it's restarted?
* The shared libraries are only useful if you want to use native events - those are turned off by default on non-Windows platforms. There's no need to copy them and modify the XPI.
* If you're able to get Firefox up and running with the WebDriver extension, try creating a new RemoteWebDriver and pointing its URL to that Firefox instance (ping me off-list if you need help with that).

I may be able to try it myself with OpenSolaris (which, I believe, is still free - although Oracle has not made it clear if it will remain so...) on an x86 machine.
Let us know the outcome of the steps I've suggested.

Eran

To unsubscribe from this group, send email to webdriver+...@googlegroups.com.

Karel Piwko

unread,
Jul 26, 2010, 3:41:22 AM7/26/10
to webd...@googlegroups.com
Hi Eran,

I tried to install xpi distributed within selenium-java-2.0a5.jar.

I got what I expected:

"Firefox WebDriver" could not be installed because it is not compatible
with your Firefox build type (SunOS_x86-sunc). Please contact the author
of this item about the problem.

I tried this on Solaris 10 with Firefox 3.6.6. Despite you suggested it
won't help, I tried adding
<em:targetPlatform>SunOS_x86</em:targetPlatform> and cloning Linux
platform directory, still the same incompatibility message.

Karel

BTW:
I was able to install Solaris 10 in VM (lib-virt). It is freely
available to download on Sun/Oracle pages after a registration which I
already had.

Simon Stewart

unread,
Jul 31, 2010, 8:20:03 AM7/31/10
to webd...@googlegroups.com
I think that the Solaris platform string is: "SunOS" rather than
"SunOS_x86" Does that work? If so, I can certainly add it to the
install.rdf.

Simon

> To unsubscribe from this group, send email to webdriver+...@googlegroups.com.

Karel Piwko

unread,
Aug 2, 2010, 1:19:15 PM8/2/10
to webdriver
I modified SunOS_x86 to SunOS and I was able to install plugin into
the browser.
However, I'm not able to run test suite automatically using created
Firefox profile. I guess it will be better to spawn
another thread about that because it is not Solaris related.

Any chance you will publish modified version in Maven repositories
soon?
Do you have a plan to upgrade "ancient version 0.9.7376" as well? The
reason why I'm using
it that I'm combining Selenium and WebDriver in integration tests and
I don't want to upgrade to the
Selenium 2.0 branch yet.

Karel

On Jul 31, 2:20 pm, Simon Stewart <simon.m.stew...@gmail.com> wrote:
> I think that theSolarisplatform string is: "SunOS" rather than
> "SunOS_x86" Does that work? If so, I can certainly add it to the
> install.rdf.
>
> Simon
>
>
>
> On Mon, Jul 26, 2010 at 8:41 AM, Karel Piwko <karel.pi...@gmail.com> wrote:
> > Hi Eran,
>
> > I tried to install xpi distributed within selenium-java-2.0a5.jar.
>
> > I got what I expected:
>
> > "Firefox WebDriver" could not be installed because it is not compatible
> > with your Firefox build type (SunOS_x86-sunc). Please contact the author
> > of this item about the problem.
>
> > I tried this onSolaris10 with Firefox 3.6.6. Despite you suggested it
> > won't help, I tried adding
> > <em:targetPlatform>SunOS_x86</em:targetPlatform> and cloning Linux
> > platform directory, still the same incompatibility message.
>
> > Karel
>
> > BTW:
> > I was able to installSolaris10 in VM (lib-virt). It is freely
> > available to download on Sun/Oracle pages after a registration which I
> > already had.
>
> > On Thu, 2010-07-22 at 22:12 +0100, Eran M. wrote:
> >> Hi,
>
> >> NotSolarisspecific, but let's see if these steps help:
> >> * Use Selenium 2.0a5 - the version you're trying to use is before
> >> Selenium and WebDriver have merged and is considered Ancient History.
> >> * The only thing you need is Java to run WebDriver. Ruby is required
> >> if you want to build it.
> >> * Start up Firefox manually (3.0 and above - 2 is not supported
> >> anymore) and try to install the XPI manually. Does Firefox show the
> >> WebDriver box after it's restarted?
> >> * The shared libraries are only useful if you want to use native
> >> events - those are turned off by default on non-Windows platforms.
> >> There's no need to copy them and modify the XPI.
> >> * If you're able to get Firefox up and running with the WebDriver
> >> extension, try creating a new RemoteWebDriver and pointing its URL to
> >> that Firefox instance (ping me off-list if you need help with that).
>
> >> I may be able to try it myself with OpenSolaris (which, I believe, is
> >> still free - although Oracle has not made it clear if it will remain
> >> so...) on an x86 machine.
> >> Let us know the outcome of the steps I've suggested.
>
> >> Eran
>
> >> On 22 July 2010 14:59, Karel Piwko <karel.pi...@gmail.com> wrote:
> >>         Julian,
>
> >>         there's no reason to worry about time this and next week, my
> >>         access to
> >>        Solarismachine is still pending because the responsible guy
> >>         > On 21 July 2010 15:12, Karel Piwko <karel.pi...@gmail.com>
> >>         wrote:
> >>         >         Hi Julian,
> >>         >
> >>         >         Nobody contacted me before. I'm currently stuck with
> >>         getting
> >>         >         development environment on
> >>         >        Solarismachine installed, but I'll surely inform
> >>         about the
> >>         >         progress.
> >>         >
> >>         >         Meantime, I tried simply to add
> >>         <em:targetPlatform>SunOS</
> >>         >         em:targetPlatform>
> >>         >         into install.rdf and I mirrored Linux so library
> >>         under
> >>         >         platform/
> >>         >         SunOS_x86-gcc3/components since
> >>         >        Solaris(10) claims binary compatibility with Linux,
> >>         however
> >>         >         without
> >>         >         success.
> >>         >
> >>         >         I've seen in SVN that WebDriver 0.9.7376 contains
> >>         the same
> >>         >         Firefox
> >>         >         extension as Selenium 2.x branch, so this effort
> >>         could be used
> >>         >         to improve coverage of Selenium 2.0 as well.
> >>         >
> >>         >         Karel
> >>         >
> >>         >
> >>         >         On Jul 21, 9:16 am, Julian Harty
> >>         <julianha...@gmail.com>
> >>         >         wrote:
> >>         >         > Karel,
> >>         >         > Has anyone else replied to you off this list? If
> >>         not I
> >>         >         suspect it'll be
> >>         >         > because you know more aboutSolaristhan many. I'd
> >>         encourage
> >>         >         you to try your
> >>         >         > suggestion then see if you can get at least some
> >>         of the
> >>         >         tests for the
> >>         >         > firefox driver to run. I've not been actively
> >>         working with
> >>         >        Solarisfor about
> >>         >         > 5 years or WebDriver for quite a few months so I'm
> >>         a little
> >>         >         out of touch,
> >>         >         > however perhaps I can help if you manage to make
> >>         some
> >>         >         progress.
> >>         >         >
> >>         >         > Julian
> >>         >         >
> >>         >
> >>         >         > On 14 July 2010 16:54, kapy
> >>         <karel.pi...@gmail.com> wrote:
> >>         >         >
> >>         >         >
> >>         >         >
> >>         >         > > Hi,
> >>         >         >
> >>         >         > > I'm trying to run a testsuite with standalone
> >>         WebDriver
> >>         >         0.9.7376, on
> >>         >         > >Solaris9 x86 andSolaris10 x86, Firefox
> >>         >         > >   [testng]     at...
>
> read more »

Karel Piwko

unread,
Aug 6, 2010, 2:01:37 AM8/6/10
to webd...@googlegroups.com
So, a quick update what I tried:

1/ I tried to add SunOS as targetPlatform for webdriver-extension.xpi in
selenium-java-2.0a5.jar, and webdriver-extension.zip in 2.0a4.jar and
webdriver-firefox-0.9.7376. For all of them, if zip renamed to xpi I was
able to install them as a plugin into Firefox 3.6.6 on Solaris 10.

However, WebDriver fails to add the extension to the profile even if
modified plugin is a part of the jar. I tried to rename
webdriver-extension.zip to xpi as well. The extension is loaded well on
Fedora though.

2/ Once I had profile with WebDriver installed, I tried:
i/ Use webdriver.firefox.profile poiting to the right directory. This
came up with Browser with WebDriver apparently enabled, but it was not
able to fetch the page, it simply hanged up with no message.
ii/ The same result when I created FirefoxProfile myself and added xpi
file to it by calling appropriate API.

See issue #480. This is apparently not Solaris related, because the same
behavior is present on my Fedora machine.

Do you have any idea what should I try next?

Thanks,

Karel

antoine

unread,
Aug 27, 2010, 8:47:09 PM8/27/10
to webdriver
I tried to use webdriver 2.0a5 on Solaris sparc and this does not work
either. I guess the binary parts of webdriver-extension.xpi would need
to be recompiled for this platform.

Simon Stewart

unread,
Sep 9, 2010, 5:52:00 PM9/9/10
to webd...@googlegroups.com
When it hangs, you can take a look at Firefox's Error Console for more
information. I reckon it'd be easy enough to get webdriver working on
Solaris.

One gotcha that we're running into is the if you have IP6 addresses on
your machine then sometimes the httpclient won't connect properly.
We've added a fix for this to what will become a6, so feel free to
check out the code. You can build it with "./go //firefox" which will
put everything you need under "build/firefox" once it's complete.

Simon

Reply all
Reply to author
Forward
0 new messages