Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fetch all objects from sapgui window
#1
Solved: 10 Years, 8 Months, 4 Weeks ago
Need to get all objects in sapguiwindow along with its class name[/align]
Reply
#2
Solved: 10 Years, 8 Months, 4 Weeks ago
can any one help out for the same...
Reply
#3
Solved: 10 Years, 8 Months, 4 Weeks ago
are you not able to add all the child objects along with your parent object..
Reply
#4
Solved: 10 Years, 8 Months, 4 Weeks 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: 10 Years, 8 Months, 4 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
#6
Solved: 10 Years, 8 Months, 4 Weeks ago
thanks it worked....
Reply
#7
Solved: 10 Years, 8 Months, 4 Weeks 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,522 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,442 06-05-2014, 08:18 PM
Last Post: sbkhbk
  SAPGUI table tree control and QTP Ansh123 3 9,930 02-19-2014, 07:28 PM
Last Post: Ansh123
  qtp 11 not recording window within a window kp_usa 0 2,276 12-19-2012, 10:52 PM
Last Post: kp_usa
  QTP not recording SAPGUI transactions Ansh123 0 2,298 11-30-2012, 08:42 PM
Last Post: Ansh123

Forum Jump:


Users browsing this thread: 1 Guest(s)