Excellent! That is exactly what I needed Sri, thank you.

On another note, I am having trouble compiling and running the debug/
test module at all. I can compile it, but I don't know how to use the
test module instead of the regular module when launching from Eclipse.
I'm using gwt 2.0 built from trunk, so I'm not sure what the
configuration is supposed to look like (I can get the normal module to
run properly just fine). I just keep on getting the error trying to
use the debug module in dev mode: "Failed to load module 'myModule'
from user agent 'Safari DMP'at ...." (where myModule is the normal one
that works by itself)

Here's the configuration I'm using

Java Application
[main]
project: myproject
main class: com.google.gwt.dev.DevMode
[arguments]
program arguments: com.unecloud.SeleniumTests -startupUrl
http://localhost:8888/MyPage.html
[classpath]
I have the source and test folder included (SeleniumTests.gwt.xml is
in the test folder)

Any ideas what I'm missing?

On Nov 18, 8:32 pm, Sripathi Krishnan <[email protected]>
wrote:
> GWT builds that specific use case.
>
> Use the widget.ensureDebugId() to set the ids.
>
> In dev and test, inherit the debug module. Put the following line in your
> module xml
> <inherits name='com.google.gwt.user.Debug'/>
>
> When compiling for production, remove the debug module. That way, the test
> code will be removed.
>
> To simplify your scripts, create a new module MyModuleTest.gwt.xml which
> inherits from MyModule.gwt.xml, and add the extra inherits line. Then
> compile the appropriate module based on the environment.
>
> --Sri
>
> 2009/11/19 Tristan <[email protected]>
>
> > Here's what I would like to do:
>
> > Selenium tests are easiest to run if each element has a unique id. I
> > would like to be able to do something along the lines of:
>
> > if Compiler style is Pretty.. include the line:
>
> >  widget.setElementId("easy-to-locate-id-for-tests")
>
> > but if I set the Compiler to Obfuscated (i.e. production), I don't
> > want that extra test code in there.
>
> > Is this possible? If so, how?
>
> > -Tristan
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<google-web-toolkit%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

--

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


Reply via email to