Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting child objects in SAP
#8
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi,

This problem also happened when i tried to get child objects.
My problem is:
1. the checkbox doesn't have a "name" property, it meas its name is empty, so i couldn't use "findbyname"
2. the id of the checkbox isn't permanent, so i couldn't use "findbyid"
3. meanwhile, i want to check both of the checkboxes

Following is my code:
Code:
set DDPDescription = description.Create
DDPDescription("micclass").value = "SAPGuiLabel"
DDPDescription("type").value = "GuiLabel"
DDPDescription("Text").value = "DDP"
Set childDDPObject = SAPGuiSession("PRS_QA").SAPGuiWindow("List for Condition Type").ChildObjects(DDPDescription)

Could anyone help me, plz?

Hi,

I changed my code as below:
Code:
Set DDPDescription = nothing
Set childDDPObject = SAPGuiSession("PRS_QA").SAPGuiWindow("List for Condition Type").ChildObjects(DDPDescription)
And I can get all objects in this window, however, when I tried to specify the correct one I need, I couldn't get the one.

Code:
childDDPObject(i).GetROPorperty("content") = "DDP"
Error Msg said the function was not supported.


Attached Files Image(s)
   


Messages In This Thread
RE: Getting child objects in SAP - by MVChowdary - 10-20-2011, 01:23 PM
RE: Getting child objects in SAP - by MVChowdary - 10-20-2011, 03:48 PM
RE: Getting child objects in SAP - by Ankesh - 10-20-2011, 04:52 PM
RE: Getting child objects in SAP - by syoutaikon - 08-15-2013, 01:23 PM
RE: Getting child objects in SAP - by Ankur - 08-15-2013, 02:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SwfTreeview - Color validation for child item YogeshCallappa 0 2,290 11-10-2016, 04:55 PM
Last Post: YogeshCallappa
  Driver Script to control child scripts sumanhyd 1 3,180 07-26-2016, 07:06 PM
Last Post: Ankesh
  UFT 12.50 unable to recognize child objects from a Dialog Class in Firefox jesusisaac 1 3,802 08-20-2015, 11:39 PM
Last Post: ADITI1992
  Child object shwetakondekar 0 2,135 07-01-2015, 03:28 PM
Last Post: shwetakondekar
  How to write a script for fly out menus (Parent - Child - Sub Child) rajkumarsm 3 4,715 09-02-2014, 10:01 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)