Daryl the Ruby version is 1.8.6 and the Watir version is 1.8.1 On Jul 1, 2:35 am, Darryl Brown <[email protected]> wrote: > Chaitanya, > What versions of Ruby and Watir are you using? The solutions will be > different for the latest versions. The popup pages on the twiki will > be updated soon. > > Darryl > > On Jul 1, 2:07 am, chaitanya <[email protected]> wrote: > > > Hi guys, > > > Sorry if this is kind of a repeat post, but I had some queries > > regarding the handling of Javascript pop-ups in Watir. I was going > > through the wiki link [http://wiki.openqa.org/display/WTR/JavaScript > > +Pop+Ups] on how to handle them and I saw a lot of solutions (either > > using Auto-It or without using it). > > > I have a scenario where I am trying to automate a data entry/retrieval > > into/from a form. The form consists of buttons which support the > > general add/edit/delete operations on data. Well, now the problem I > > have is that depending upon what entries the user enters (e.g. > > duplicate entries, incorrect password/login id), a pop-up is > > triggered. I need to obtain the text appearing in the popup and then > > dismiss it. > > > From what I understand, > > a) Solution 2 on the Wiki essentially starts off a Process and polls > > for whether a popup appears every 1 second. > > b) Solutions 3,4,5 write a handler to dismiss the popups but they know > > in advance when the popup is going to appear. > > c) I am trying to make sense of Solution 7 posted by Tony, but any > > pointers on that would be appreciated. > > > In the scenario which I described, where popups could be generated > > dynamically by the click of a button, solution 2 seems the right > > option, but polling for appearing of a popup seems like an overkill. I > > know Ruby does not provide any native support for Event handling like > > C# or the Listeners model in Java, but I was wondering whether it > > would be possible to trigger off the popup handling mechanism by means > > of an event driven approach. > > > Thanks in advance for all the help you guys will provide. I really > > appreciate it. Also, hopefully I have been clear and descriptive as > > far as I can with the problem
-- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
