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 <cjq....@gmail.com> 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 watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---