Tuesday, June 30, 2009

Error Numbers and Description

Error Number -- Description
-2147220984 -- Object is Disabled

-2147220990-- Object Not Found Or Text input disabled

-2147220975-- The statement contain one or more invalid function arguments

-2147220983-- Required item is not available (In List box)

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