Why isn't firefox picking up the GWT Developer Plugin when started from Eclipse ?

407 views
Skip to first unread message

hjo1620

unread,
Feb 3, 2010, 7:04:37 AM2/3/10
to webdriver
Ubuntu 8.04 LTS:

Running Eclipse from command line, the GWT Developer Plugin gets
loaded:

root@machine: /usr/lib/firefox-3.0.14/firefox --verbose
Initializing GWT Developer Plugin
gecko=1.9.0.14, firefox=3.0.14, abi=Linux_x86-gcc3, built for ff3
Connect(url=http://localhost:8888/Employee.html?
gwt.codesvr=127.0.1.1:9997, sessionKey=V$/^.B40+"`$00p^,
address=127.0.1.1:9997, module=employee, hostedHtmlVersion=2.0
Initiating GWT Development Mode connection to host 127.0.1.1, port
9997

However, running a JUnit test (using Webdrivers Firefox driver), from
Eclipse, runs the exact same command:
/usr/lib/firefox-3.0.14/firefox --verbose, by same user "root" ( as
displayed by ps -ef ).
This time the plugin does not get loaded, and the "MissingPlugin.html"
message gets displayed.

Why isn't firefox picking up the GWT Developer Plugin when started
from Eclipse ?
Any workarounds ?

Eran M.

unread,
Feb 3, 2010, 8:17:08 AM2/3/10
to webd...@googlegroups.com
Hi,

The plug-in is installed in your Firefox profile. Since WebDriver starts Firefox with its own profile, you will have to specify you want this extension on this profile. Fortunately, that's easy:
        FirefoxProfile profile = new FirefoxProfile();
        profile.addExtension(new File("path to gwt extension xpi"));
        WebDriver driver = new FirefoxDriver(profile);

Will get this extension installed in the profile an addition to the WebDriver extension. I've specifically tested this configuration and it works. The only nuisance is having to keep a copy of the GWT extension xpi somewhere on the disk for the test code to use.

On a side note, running ordinary stuff as root is highly discouraged - a small mistake could lead you to re-installing your machine.

Eran


--
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.


hjo1620

unread,
Feb 4, 2010, 1:37:29 AM2/4/10
to webdriver
Thankyou !

Problem solved.

David Hang

unread,
Feb 23, 2010, 7:53:49 PM2/23/10
to webdriver
I'm using a Mac. Where where you able to find the "path to gwt
extension xpi".

What should I search for ? I tried *.xpi.

Pls help.

Thx

On Feb 3, 10:37 pm, hjo1620 <hjo1...@gmail.com> wrote:
> Thankyou !
>
> Problem solved.

Eran M.

unread,
Feb 24, 2010, 7:40:31 PM2/24/10
to webd...@googlegroups.com
Get it from this page:

David Hang

unread,
Feb 25, 2010, 12:19:53 PM2/25/10
to webdriver
Thx Eran.

The link installs the plug-in automatically for me. I was not able to
locate the plugin in my hard drive.

However, I found gwt-dev-plugin.xpi on the web and I downloaded the
file and placed it in a random area in my hard drive to reference.

I get the following error.. Any ideas ? Thx in advance.

Exception in thread "main" org.openqa.selenium.WebDriverException:
java.io.FileNotFoundException: /var/folders/8U/
8UsoGm8IFGebWPqZ5oQaq0cCB2g/-Tmp-/unzip2202658745500328109stream/
install.rdf (No such file or directory)
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version:
'10.6.2', java.version: '1.6.0_17'
Driver info: driver.version: firefox
at
org.openqa.selenium.firefox.FirefoxProfile.readIdFromInstallRdf(FirefoxProfile.java:
221)
at
org.openqa.selenium.firefox.FirefoxProfile.addExtension(FirefoxProfile.java:
157)
at com.simpsons.selenium.AdminUIHomePage.main(AdminUIHomePage.java:
14)


On Feb 24, 4:40 pm, "Eran M." <eran....@gmail.com> wrote:
> Get it from this page:http://gwt.google.com/samples/MissingPlugin/
>

> On 24 February 2010 00:53, David Hang <dhan...@gmail.com> wrote:
>
> > I'm using a Mac. Where where you able to find the "path to gwt
> > extension xpi".
>
> > What should I search for ?  I tried *.xpi.
>
> > Pls help.
>
> > Thx
>
> > On Feb 3, 10:37 pm, hjo1620 <hjo1...@gmail.com> wrote:
> > > Thankyou !
>
> > > Problem solved.
>
> > --
> > 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<webdriver%2Bunsu...@googlegroups.com>

Eran M.

unread,
Feb 26, 2010, 8:27:29 AM2/26/10
to webd...@googlegroups.com
Hi David,

This is the direct URL: https://dl-ssl.google.com/gwt/plugins/firefox/gwt-dev-plugin.xpi. Wget this URL and you should have the extension.
I would guess that the xpi you've found is somehow incomplete. But to know for sure, I'd have to see the source line that triggered the exception (in AdminUIHomePage.java). Can you paste the code, or a small subset of it reproducing the problem?

Eran

To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages