Seems you did not include the following two jars in your project json_simple-r1.jar stringtree-json-2.0.10.jar
You could check them out from trunk/core/lib directory or use maven task mvn install to download them. Thanks, Jian On Apr 9, 10:49 am, dominicm <[email protected]> wrote: > Looks like there is a problem with the latest jar file > > Partial stack trace: > Caused by: java.lang.NoClassDefFoundError: > org.stringtree.json.JSONReader > at org.tellurium.dsl.BaseDslContext.class$(BaseDslContext.groovy) > at org.tellurium.dsl.BaseDslContext.$get$$class$org$stringtree$json > $JSONReader(BaseDslContext.groovy) > at org.tellurium.dsl.BaseDslContext.<init>(BaseDslContext.groovy:40) > at org.tellurium.dsl.DslContext.<init>(DslContext.groovy) > at com.betfair.www.website.ui.Windows.<init>(Windows.groovy) > > On Apr 9, 2:39 pm, John <[email protected]> wrote: > > > I checked in the change. You should use > > > closeWindow window_uid > > > to close the window. Under the hood, it actually first selects the > > window and then call the close method, > > > def closeWindow(String windowID){ > > dispatcher.selectWindow(windowID) > > dispatcher.close() > > } > > > I also uploaded the new tellurium-0.6.0.jar to our user group. Please > > help us to test if it works. > > > Thanks, > > > Jian > > > On Apr 9, 9:21 am, John <[email protected]> wrote: > > > > Seems Selenium uses the following method to close window, > > > > /** Simulates the user clicking the "close" button in the titlebar of > > > a popup > > > window or tab. > > > */ > > > void close(); > > > > But before that, maybe we should first select the window to close. I > > > will > > > add a closeWindow() method to the Window object and let you know > > > after I am done. > > > > Thanks, > > > > Jian > > > > On Apr 9, 9:12 am, dominicm <[email protected]> wrote: > > > > > Hi, thanks for your reply. > > > > > This is a full blown popup rather than a confirmation or an alert. > > > > > I can use openWindow and selectWindow but the Selenium close method is > > > > not exposed in Tellurium, so I cannot close windows opened using > > > > openWindow or as a result of clicking on a link etc. > > > > > On Apr 9, 11:39 am, Haroon Rasheed <[email protected]> wrote: > > > > > > Hi, > > > > > > Did you try any of these?? > > > > > > - chooseCancelOnNextConfirmation: By default, Selenium's overridden > > > > > window.confirm() function will return true, as if the user had > > > > > manually > > > > > clicked OK; after running this command, the next call to confirm() > > > > > will > > > > > return false, as if the user had clicked Cancel. Selenium will > > > > > then resume > > > > > using the default behavior for future confirmations, automatically > > > > > returning > > > > > true (OK) unless/until you explicitly call this command for each > > > > > confirmation. > > > > > > - chooseOkOnNextConfirmation: Undo the effect of calling > > > > > chooseCancelOnNextConfirmation. Note that Selenium's overridden > > > > > window.confirm() function will normally automatically return true, > > > > > as if the > > > > > user had manually clicked OK, so you shouldn't need to use this > > > > > command > > > > > unless for some reason you need to change your mind prior to the > > > > > next > > > > > confirmation. After any confirmation, Selenium will resume using > > > > > the default > > > > > behavior for future confirmations, automatically returning true > > > > > (OK) > > > > > unless/until you explicitly call chooseCancelOnNextConfirmation > > > > > for each > > > > > confirmation. > > > > > > Cheers > > > > > Haroon > > > > > > 2009/4/9 dominicm <[email protected]> > > > > > > > Hi, > > > > > > > Is there a way to close a popup window? Can't find a method to do > > > > > > this. > > > > > > > Thanks- Hide quoted text - > > > > > > - Show quoted text -- Hide quoted text - > > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "tellurium-users" 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/tellurium-users?hl=en -~----------~----~----~----~------~----~------~--~---
