Wednesday, June 17, 2009

Handle the Invisible Objects With QTP Code

Some times in .Net (Ajax UI) applications, Invisible objects are identifying with QTP.In this case Exist mehtod is not working as expected.

if Borwser("BName").Page("PageName").WebElement("WBName").object.currentStyle.display="none" Then
Msbbox "Object is in Hidden mode"
else
Msgbox "Object is in visbile mode"
End If

No comments:

Post a Comment