Hi, Namit,
Your suggestion maybe good. I know some kinds of solution.
But if I use autoit, there is no title, how can I make it?
autoit=WIN32OLE.new('AutoItX3.Control')
ret=autoit.WinWait(*title*,"",60)Thanks. Wesley Chen. On Wed, Aug 26, 2009 at 3:08 PM, Namit <[email protected]> wrote: > > Hi, > If you do not want to use title of the pop up then you can use the > hwnd command to close the pop up by just passing the caption of > button. Visit this URl for some sample examples. > > http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups > > Thanks > Namit > > On Aug 26, 11:42 am, Wesley Chen <[email protected]> wrote: > > Hi, guys, > > > > I mean that sometimes, we know there is a modal dialog but we won't to > know > > the title. > > > > For following, we must provide a title. But I don't want to provide it > > sometimes. > > > > ============================= > > > > autoit=WIN32OLE.new('AutoItX3.Control') > > # ret=autoit.WinWait(title,"",180) # wait > > the popups for 3 minutes. > > ret=autoit.WinWait(title,"",60) # wait > the > > popups for 3 minutes. > > > > ... > > > > ============================= > > > > Any suggestion would be quite appreciated. > > Thanks. > > Wesley Chen. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to [email protected] Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---
