Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Verify CheckBox is disabled
#1
Solved: 11 Years, 4 Months ago
I'm working with a web base application and on one of my screens I have four selections and one of the selections is disabled and I need to verify that the selection is disabled when I run the test.

Selection1
Selection2
Selection3
Selection4 disabled

I need the the test to run and verify the checkbox is disabled before proceeding to the next step.
Reply
#2
Solved: 11 Years, 4 Months ago
Hi Brian,

You can use the "disabled" property of the checkbox to verify whether the checkbox is enabled or disabled. If the checkbox is disabled it will return you "1" and "0" if it is enabled.

E.g.
Code:
sStatusChkBox = Browser("...").Page("...").Frame("...").WebCheckBox("Selection4").GetROProperty("disabled")

You can then use the status to validate and proceed ahead.

HTH.

Cheers,
Vijayendra
Reply
#3
Solved: 11 Years, 4 Months ago
Thanks Vijayendra!

I was able to figure it out, but thanks for the reply.


Brian
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to check Checkbox in SSDBGrid in windows application RamUFT 0 1,089 02-13-2020, 07:34 PM
Last Post: RamUFT
  Webtable Checkbox in UFT Syahirah 7 11,444 11-15-2017, 03:47 PM
Last Post: Ankur
  object disabled eliass 1 1,713 05-30-2017, 02:28 AM
Last Post: Vichu M J
  [UFT] [WPF] Verify if the cell contains an image robertosalemi 0 1,897 10-25-2016, 06:57 PM
Last Post: robertosalemi
  Need to verify the drop down values based on condition santhoshmscsoftware 1 2,906 05-04-2016, 11:28 PM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 1 Guest(s)