someguy
someguy

Reputation: 1035

Running WatiN with Firefox on localhost

I'm trying to run watin with firefox on a localhost, but there seems to be an error:

WatiN.Core.Native.Mozilla.FireFoxException: Unable to connect to jssh server, please make sure you have correctly installed the jssh.xpi plugin

I'm using firefox 3.6 and already install the plugin. It works when I'm not using localhost. Is there a workaround/solution for this problem?

Upvotes: 2

Views: 6230

Answers (4)

GShenanigan
GShenanigan

Reputation: 5493

I had this same problem on server. I could run the application fine under my own login, but when set up as a scheduled task, it wouldn't work. Eventually worked out that because the app was running under a different login (a domain service account), it didn't have permission to access the JSSH Firefox plugin.

This Blog Post describes the situation (and resolution) in much more detail, but basically, when you install an add-on to FireFox, it is installed for the current user, but not globally. The add-on must be installed globally (i.e. for all users) to work.

I couldn't get the command line option mentioned in the link to work, so I logged onto the server using the service account, and added the JSSH add-on manually.

In your case, it could be that using "localhost", is forcing your application to run under a different account, which does not have access to the JSSH plugin in FireFox.

Upvotes: 0

Drew Noakes
Drew Noakes

Reputation: 310907

Note that if you installed WatiN via NuGet, then you'll have to find the .xpi file in your packages folder.

Upvotes: 1

Phil Lambert
Phil Lambert

Reputation: 1047

I get this occasionally. There's been a bug submitted for this: -

http://sourceforge.net/tracker/?func=detail&aid=3356073&group_id=167632&atid=843727

Upvotes: 0

dove
dove

Reputation: 20674

Like the documentation says you need to install the jssh.xpi plugin, that link has step by step instructions.

It does not give latest jssh link and there is no authority for it but have a look to the matrix in step 2 of instructions for Watir or if it is Windows Firefox 3.6, download directly

Upvotes: 1

Related Questions