I am Newbie to AutoIT and Watir, before that i was using QTP for our testing process, recently i have started the QTP scripts into Watir.
I am working in a web application, where there are so many Modal Dialogs have been used to covey error message. I tried to get the popup text by using Watir but i cant get anything, only nil value i got. When i tried the same with Autoit i got the url in the Modal dialog. Please let me know if any ways are available to access the Modal dialog's text.
@ie.frame(:id,"wfFrame").button(:id,"PageActionPane_btnSubmit").click_no_wait sleep 10 puts title1 = autoit.WinGetTitle("") puts autoit.WinWait(title1,3) puts autoit.WinGetText(title1)
The above code returns the window handle, title correctly. But it returns the url only from the Modal Dialog. please see the attached screen shot of the Modal dialog.
If is it possible in Autoit please let me know about the way and code.