Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
view child objects
#1
Solved: 10 Years, 8 Months, 4 Weeks ago
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
Solved: 10 Years, 8 Months, 4 Weeks ago
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 11,257 02-13-2019, 03:58 AM
Last Post: zia003
  Child Object Not able to identified in Web Menu Link noor 0 1,640 01-21-2018, 04:44 PM
Last Post: noor
  Selecting child node from Wintree object ajith123 2 5,000 02-26-2014, 02:12 AM
Last Post: supputuri
  Child Objects in JavaWindow shubham 0 2,780 01-24-2014, 03:21 AM
Last Post: shubham
  Unable to view cursor during run swathiG 1 4,540 08-31-2012, 11:29 AM
Last Post: Sathiya

Forum Jump:


Users browsing this thread: 1 Guest(s)