Hi Geeta Patil, Here is a solution i found doing a search on google:
http://stackoverflow.com/questions/18843880/how-to-access-modal-pop-up-using-watir and another http://stackoverflow.com/questions/20102433/watir-webdriver-unable-to-click-cancel-target-button-on-popup-window Can you get the html elements of the modal dialog box using Fire Bug? Post that information here. Joe On Fri, Nov 7, 2014 at 12:03 PM, Geeta Patil <[email protected]> wrote: > Hi > > I am trying to automate scraping of webpage with links for Print. > > When i click on Print link as below, Print Modal Dialog box appers. > browser.a(:text => 'Print').click > > I would like to to get focus on this window and click on OK or cancel > button on the Dialog Box. > > Could you let me know how do i get access to this Modal dialog box once > its displayed > > Thanks > Geet > > -- > -- > 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] > > --- > You received this message because you are subscribed to the Google Groups > "Watir General" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- 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] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
