Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fetch all objects from sapgui window
#1
Solved: 11 Years, 3 Months ago
Need to get all objects in sapguiwindow along with its class name[/align]
Reply
#2
Solved: 11 Years, 3 Months ago
can any one help out for the same...
Reply
#3
Solved: 11 Years, 3 Months ago
are you not able to add all the child objects along with your parent object..
Reply
#4
Solved: 11 Years, 3 Months ago
I have some labels and some values are present in it, what i need to do is i need to search the value i have in my input file and click on it acc.
Reply
#5
Solved: 11 Years, 3 Months ago
hey you could use the find option. Once you find the item on page, you coulde use the sendkey method. Chk the sample code.

Code:
SAPGuiSession("Session").SAPGuiWindow("SAP Directories").SendKey CTRL_F
SAPGuiSession("Session").SAPGuiWindow("Find_3").SAPGuiEdit("Find").Set "Your search value" //Enter the value to be searched
SAPGuiSession("Session").SAPGuiWindow("Find_3").SAPGuiButton("Find   (Enter)").Click
SAPGuiSession("Session").SAPGuiWindow("Find_4").SAPGuiLabel("Object").SetFocus //Set focus on the onject
SAPGuiSession("Session").SAPGuiWindow("Find_4").SAPGuiLabel("Object").SetCaretPos 12
SAPGuiSession("Session").SAPGuiWindow("Find_4").SendKey F2//Click on the object

Let me know if this helps.
Reply
#6
Solved: 11 Years, 3 Months ago
thanks it worked....
Reply
#7
Solved: 11 Years, 3 Months ago
hey please make sure you add the objects properly. Here object is the label which will apper in the find window if serach was successful. This object will remain same for all.

Just add the object and run it.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  SAPGUI Grid Ansh123 1 5,649 11-20-2014, 05:05 PM
Last Post: supputuri
  Is it possible to call Java window and Power Builder Window in 1 Action sbkhbk 0 2,517 06-05-2014, 08:18 PM
Last Post: sbkhbk
  SAPGUI table tree control and QTP Ansh123 3 10,213 02-19-2014, 07:28 PM
Last Post: Ansh123
  qtp 11 not recording window within a window kp_usa 0 2,344 12-19-2012, 10:52 PM
Last Post: kp_usa
  QTP not recording SAPGUI transactions Ansh123 0 2,374 11-30-2012, 08:42 PM
Last Post: Ansh123

Forum Jump:


Users browsing this thread: 2 Guest(s)