I've always used Selenium directly. You can start by using the Selenium IDE to record the script, but for an AJAX application, you'll need to tweak the script by hand to add the appropriate waitFor() commands (e.g. waitForVisible, waitForElementPresent, etc.) to ensure that your script waits for sever commands to complete, windows to redraw, etc.
You can decide if you want the tests to run in pure Selenese (the HTML table structure created by the Selenium IDE) or in a host language like Java or Ruby using Selenium RC. I prefer writing the tests in Java or Ruby instead of Selenese because it's easy for me to edit both GWT code and Selenium tests all from one IDE (IntelliJ, Eclipse, etc.), and it's easier to write reusable routines in Java or Ruby than in Selenese tables. If you are having problems using DOM IDs, you might consider using CSS selectors instead to locate the items you want. Cheers, Dan On Jan 28, 2:24 pm, rex <[email protected]> wrote: > Yes. Exactly. The dynamic id generation is a pain. That is an obstacle > in the test development. Does anybody know how to tackle it in > Selenium? Also, i repeat my previous question whether to use Selenium > alone or with another framework like 'PushToTest'? > > Thanks, > Rex > > On Jan 28, 2:36 am, Serge <[email protected]> wrote: > > > I see one serious problem with Selenium using: if you use GwtExt then > > all page's ids changes dynamically, so you can't use Selenium's > > scripts directly - you have to rewrite it for another methods of > > page's widgets determination (f.e. by name, by location and so on). > > If anybody know how to force GwtExt to generate ids once it would be > > good! --~--~---------~--~----~------------~-------~--~----~ 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=en -~----------~----~----~----~------~----~------~--~---
