Quality Testing

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

 

Views: 14

Reply to This

Replies to This Discussion

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

RSS

TTWT Magazine

Webinar

You Can


Call for Articles

Advertisement

Videos

  • Add Videos
  • View All

Badge

Loading…

© 2012   Created by Quality Testing.

Badges  |  Report an Issue  |  Terms of Service