Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fetch all objects from sapgui window
#5
Solved: 11 Years, 3 Months, 3 Weeks 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


Messages In This Thread
RE: Fetch all objects from sapgui window - by Ankesh - 08-21-2012, 05:18 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SAPGUI Grid Ansh123 1 5,672 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,530 06-05-2014, 08:18 PM
Last Post: sbkhbk
  SAPGUI table tree control and QTP Ansh123 3 10,236 02-19-2014, 07:28 PM
Last Post: Ansh123
  qtp 11 not recording window within a window kp_usa 0 2,365 12-19-2012, 10:52 PM
Last Post: kp_usa
  QTP not recording SAPGUI transactions Ansh123 0 2,384 11-30-2012, 08:42 PM
Last Post: Ansh123

Forum Jump:


Users browsing this thread: 2 Guest(s)