Wednesday

Hovering in QTP

1. Give FireEvent "onmouseover" ( it solved my problem)

2. Or use drescriptive programming to get class and do( doubt in that...inconsistent behavior)


Function Hovering_onWorkItemRow(objParent, Object_Class, Object_Logical_Name,TC_ID,QC_Mapping,TC_name,Step_desc,TRFileName,Action_On_Object)

wait(2)
On Error Resume Next
objParent.WebTable(Object_Logical_Name).FireEvent "onmouseover"

wait(4)

If Error.raise <>0 Then
Call WriteLog(TC_ID,QC_Mapping,TC_name,Step_desc,"Failed",TRFileName)
Else
Call WriteLog(TC_ID,QC_Mapping,TC_name,Step_desc,"Passed",TRFileName)
End If


End Function

No comments:

Post a Comment