How to handle a dialog box poping in a web appln
Im new to silk test . Im automating a web appln using Open Agent. I declare nothing in frame file, i use Descriptive Programming. I encountered a situation where i have to handle dialog box(Save As , Warning msg dialog). For Save As i have to enter a filename and Click Save where as for Warning msg dialog i need to Click OK.
I tried to record and use the script generated but its not working.
Can anyone help on this situation ?
Re: How to handle a dialog box poping in a web appln
You need to implement the inheritance concept to handle those warning dialog. Lets say that, you are clicking a link in a WebPage ( Say Link1). Then you are getting Warning msg. By default class of Link1 will be HtmlLink. You create a class by inheriting the class HtmlLink . Say MyHtmlLink and override Click Method. In that, first click the super class click method Using derived:: click and then check for the existence of any dialog ( Attention: You need to capture the Browser dialog in the inc files) and dismiss it.