08-01-2011, 07:14 PM
(This post was last modified: 08-01-2011, 07:19 PM by nistalaramesh.)
HI Raj,
I have move forwarded with your answer. Now I am able to store the "alt" Property of Yellow Icon in to Data table.
But QTP not clicking on the Yellow Icon Image.
I am using the following Code:
I Even tried the Below Code also:-
But I am Getting this Error:
Cannot identify the object "[ Image ]" (of class Image). Verify that this object's properties match an object currently displayed in your application.
I have move forwarded with your answer. Now I am able to store the "alt" Property of Yellow Icon in to Data table.
But QTP not clicking on the Yellow Icon Image.
I am using the following Code:
Code:
Dim MyConnection, ConnectionString
Set MyConnection = CreateObject("ADODB.Connection")
ConnectionString = "Provider=sqloledb; Data Source=Ramesh; Initial Catalog=midc390;User Id=sa;Password=sa@123"
MyConnection.Open(ConnectionString)
Set MyRecordSet = CreateObject("ADODB.Recordset")
MyRecordSet.ActiveConnection=MyConnection
MyRecordSet.Open(""Select ID, NumID from Costestimate as YellowIcon where ReqID= '"&p&"'")
If MyRecordset.EOF <> True Then
DataTable.Value("YellowIcon") = MyRecordset.Fields("YellowIcon").Value
End If
Dim Imglink
Imglink = DataTable.Value("YellowIcon")
Browser("Information Management").Page("Information Management").Frame("Frame_\d").Image("alt:="&Imglink).Click
I Even tried the Below Code also:-
Code:
Set oDesc = Description.Create()
oDesc("abs_x").Value = "830"
oDesc("abs_y").Value = "305"
oDesc("html tag").Value = "IMG"
oDesc("file name").Value="yellow_arrow\.gif"
oDesc("alt").Value="Imglink"
Browser("Information Management").Page("Information Management").Frame("Frame_\d").Image(oDesc).Click
Set oDesc = nothing
But I am Getting this Error:
Cannot identify the object "[ Image ]" (of class Image). Verify that this object's properties match an object currently displayed in your application.