Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP throws error on web elements when Descriptive programing used.
#11
Not Solved
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:

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.
Reply


Messages In This Thread
RE: QTP throws error on web elements when Descriptive programing used. - by nistalaramesh - 08-01-2011, 07:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Descriptive programing kedala 1 2,733 10-04-2016, 09:25 PM
Last Post: venkatesh9032
Smile find out of spelling error in Web application deveshbhatt29 1 2,207 01-10-2014, 05:10 PM
Last Post: Maheep_bhambri
  Getting an 'Error in XML document' Error when submitting web services XML luckyexpert 0 3,118 08-20-2013, 10:23 PM
Last Post: luckyexpert
  Web Table Descriptive Language karraaruna 3 3,456 07-04-2013, 08:06 PM
Last Post: karraaruna
  Web Elements DL karraaruna 3 3,204 06-06-2013, 10:05 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 4 Guest(s)