How to find out number of buttons on a page. Will Rational Robot read the disabled buttons also. Will it take the header buttons (ie file, edit, view and Min, Max, Close buttons).
Could you please let me know your using web application or client server application?
We are using Client Server application
Here when i record using Rational Robot on a tool bar it is showing 26buttons. But when we count manually there are only 19 buttons. what might be the problem
Did you happen to check the Visible property? Just because you can't see it doesn't mean it's not there... Enabled<>Visible property-wise
It's life Jim, but not as we know it
I think this code will help you.
Dim children() as String
Dim i as Integer,j as Integer
Dim ObjType as String
Window SetContext, "Caption=Calculator", ""
Result = SQAGetChildren(".\",children)
For i=0 to UBound(children)
IF Trim(UCase(objType))=Trim(UCase("PushButton")) THEN
j=j+1 'Gives the count of pushbuttons
You can also use SqaFindObject or SqaGetChidren to find the hidden objects(Buttons).