Quality is delighting customers
Hi Folks,
Can you plz temme, how to check whether the button is disabled or enabled. I have the scenario like, i need to check the Pay button is enabled or disabled in Payment page,
Plz help me whether the below code will help me to get the answer for my above questions,
sButton = Browser("iexplore").Page("Payment Confirmation").WebButton("pay").GetRoProperty("disabled")
if sBUtton = True then
MsgBox " Pay button is disabled
Else
MsgBox "pay button is enabled
End If
Tags:
Permalink Reply by Amaresh Sindogi on December 31, 2010 at 1:50pm Hi,
The button properties are stored 0 for Enable & 1for Disable value,instead of checking 'True' put value for '1' in ur code or see below code
If Browser("iexplore").Page("Payment Confirmation").WebButton("pay").GetRoProperty("disabled") = 1 Then
MsgBox " Pay button is disabled"
Else
MsgBox "pay button is enabled"
End If
© 2012 Created by Quality Testing.