GWT 2 mailstone 2+selenium+testng+firefox 3.5,keep asking to install plugin

19 views
Skip to first unread message

Alex Luya

unread,
Nov 12, 2009, 2:57:56 AM11/12/09
to Google Web Toolkit
(All uitilities are latest version )
I use following code to test my login page:
-----------------------------------------------------------------
import com.thoughtworks.selenium.DefaultSelenium;
import com.thoughtworks.selenium.Selenium;

public class Login
{
@Test
public void Login() throws Exception
{
Selenium selenium = new DefaultSelenium("localhost", 4444,
"*firefox","http://localhost:8888/");
selenium.start();
selenium.open("/CRM.html?gwt.hosted=127.0.0.1:9997");
selenium.type("gwt-debug-userName", "admin");
selenium.type("gwt-debug-password", "admin");
selenium.click("gwt-debug-login");
selenium.stop();
}
}
----------------------------------------------------------------------
after firefox opened,it keeps asking me to install gwt plugin(but the
plugin has been installed and functioned properly),and I try to
refresh page,no changes,then I copy the url,close firefox and reopen
it,pasted url just copied,it works.that is strange.why is it when I
use Selenium to open firefox,it asked me to install already installed
plugin.

Cliff Zhao

unread,
Nov 12, 2009, 9:43:08 AM11/12/09
to google-we...@googlegroups.com
Selenium has its customized profile for firefox and IE, I think that you need to let Selenium start your firefox profile that have the plugin installed.


--

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=.



Alex Luya

unread,
Nov 12, 2009, 9:33:12 PM11/12/09
to Google Web Toolkit
Yeah,thank you Cliff,I figured it out
-----------------------------------
cmd>java -jar selenium-server.jar -firefoxProfileTemplate "C:
\Documents and Settings\your account name\Application Data\Mozilla
\Firefox\Profiles\xxxxxxx.default"
------------------------------------
Above command line will force selenium-server to start with specified
profile.
> > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsubs cr...@googlegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages