Verify CheckBox is disabled - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Verify CheckBox is disabled (/Thread-Verify-CheckBox-is-disabled) |
Verify CheckBox is disabled - Brian T. - 06-22-2010 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. RE: Verify CheckBox is disabled - vijayendra.shukla - 06-23-2010 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 RE: Verify CheckBox is disabled - Brian T. - 06-24-2010 Thanks Vijayendra! I was able to figure it out, but thanks for the reply. Brian |