Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
view child objects
#1
Hi Ankur,

following is my script to view all the childobjects. "Object doesn't support" error occur in For loop. can you help on this

Code:
Set Obj_Desc=Description.Create Obj_Desc("html tag").value = "INPUT" Dim allTextbox, sign Set allTextbox = Browser("Login").Page("Login").ChildObjects(Obj_Desc) For each sing in allTextbox msgbox sing.Name Next
Reply
#2
Hi Arun,

Try with below code ...

Code:
Set Obj_Desc=Description.Create Obj_Desc("html tag").value = "INPUT" Dim allTextbox Set allTextbox = Browser("Login").Page("Login").ChildObjects(Obj_Desc) allTextbox_Cnt=allTextbox.count For i=0 in (allTextbox_Cnt-1) msgbox allTextbox(i).GetRoProperty("Attached Text") Next

The script will work fine.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question what is the shortcut key used to switch between keyword view and expert view in qtp. shaileshanand86 5 12,709 02-13-2019, 03:58 AM
Last Post: zia003
  Child Object Not able to identified in Web Menu Link noor 0 2,234 01-21-2018, 04:44 PM
Last Post: noor
  Selecting child node from Wintree object ajith123 2 5,864 02-26-2014, 02:12 AM
Last Post: supputuri
  Child Objects in JavaWindow shubham 0 3,302 01-24-2014, 03:21 AM
Last Post: shubham
  Unable to view cursor during run swathiG 1 5,386 08-31-2012, 11:29 AM
Last Post: Sathiya

Forum Jump:


Users browsing this thread: 1 Guest(s)