Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How will you identify total number of buttons on SAP window.
#1
Solved: 11 Years, 4 Months ago
Hi All,

I jave one query.I need to identify total number of buttons on a particular window.If anybody is having the idea regarding the same,plz let me know.
Reply
#2
Solved: 11 Years, 4 Months ago
Hi Ketan,

You can acheive it by creating Description object.

I have not done it on SAP, so posting the code for Web. You can customize the code and try on SAP

Quote:Set wButton = Description.Create

wButton("micclass").Value = "WebButton" //Here instead of micclass you can use any other property that SAP has for buttons and replace WebButton with the name QTP gives to SAP buttons

Set wButtonAll = Browser("BrowserName").Page("PageName").ChildObjects(wButton) //Makes list of all the buttons present under the hierarchy

Msgbox wButtonAll.Count //Give you the total number of buttons
Hope it will help you

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  This code does not give total no of links present on page plz help it returns 0 excellentpawan 8 5,638 01-17-2015, 07:49 PM
Last Post: yogi4tech
  Is it possible to call Java window and Power Builder Window in 1 Action sbkhbk 0 2,540 06-05-2014, 08:18 PM
Last Post: sbkhbk
  I want to count total no of links in a page and click one by one excellentpawan 9 7,269 07-23-2013, 11:51 AM
Last Post: Ankur
  Total no of mail in gmail excellentpawan 2 3,158 07-05-2013, 01:56 PM
Last Post: Staff
  SAP QTP issue-SAP screen disappear Jyobtech 2 3,371 02-27-2013, 10:01 AM
Last Post: Jyobtech

Forum Jump:


Users browsing this thread: 1 Guest(s)