Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
code to Identify type of object
#2
Solved: 11 Years, 8 Months, 3 Weeks ago
Hi Prasad,

msgbox ObjectType(Window("").winEdit(""))
Code:
Public ObjectType(strobjPath)
  If strobjPath.Exist Then
    strobjType = strobjPath.GetTOProperty("Class Name")
    ObjectType = strobjType
  Else
   ObjectType = strobjPath & "object does not exist."
  EndIF
End Function
Please let me know if you need any more info.
Thanks,
SUpputuri
Reply


Messages In This Thread
code to Identify type of object - by BVVPrasad - 07-24-2010, 01:58 PM
RE: code to Identify type of object - by supputuri - 07-26-2010, 08:04 PM
RE: code to Identify type of object - by PrabhatN - 07-27-2010, 05:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Different Type of Dropdown Selector zunebuggy 6 3,831 05-01-2018, 06:46 PM
Last Post: zunebuggy
  Cannot identify the object "Webtable" korunu 1 2,636 06-29-2016, 05:28 PM
Last Post: Ankesh
  Cannot identify the object "Webtable" korunu 0 1,922 05-11-2016, 12:02 AM
Last Post: korunu
  QTP "Cannot identify the object" richardpaulhall_2 3 13,886 08-20-2015, 11:46 PM
Last Post: ADITI1992
  cannot use the type method on object and submit is not working jove1776 5 9,276 01-27-2015, 10:08 PM
Last Post: Parke

Forum Jump:


Users browsing this thread: 1 Guest(s)