Hi,
Please suggest me better way to do it. Do we have something like Find Strategy for a c#.net application.
Regards,
Satyajeet
The default behavior of Test Studio and the Telerik Testing Framework is to time out after a certain interval if the element is not found.
I would like to avoid the Timeout Exception and perform a different set of steps depending on whether the element is found. My application does not use silverlight.
I have checked the Telerik help document , Change Silverlight Find Strategy, but i think it is applicable for only Silverlight applications.
Below is the code snippet which i want to perform if the 'MS2007AboveRadio' check box on the iframe is found. To avoid Timedout Exception if the element is not found, i have placed it in the try catch block. Tried the if else condition aswelll, but it gets timedout.
try
{
Pages.application.FrameFrame1.MS2007AboveRadio.Check(
true
,
true
);
Pages.application.FrameFrame1.CphMainBtnProceedImage.Click(true
);
}
catch
{
}
Please suggest me better way to do it. Do we have something like Find Strategy for a c#.net application.
Regards,
Satyajeet