Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How will you identify total number of buttons on SAP window.
#2
Solved: 10 Years, 9 Months, 2 Weeks 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


Messages In This Thread
RE: How will you identify total number of buttons on SAP window. - by PrabhatN - 02-03-2011, 06:45 PM

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,297 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,451 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 6,774 07-23-2013, 11:51 AM
Last Post: Ankur
  Total no of mail in gmail excellentpawan 2 2,975 07-05-2013, 01:56 PM
Last Post: Staff
  SAP QTP issue-SAP screen disappear Jyobtech 2 3,216 02-27-2013, 10:01 AM
Last Post: Jyobtech

Forum Jump:


Users browsing this thread: 1 Guest(s)