Ask a Question

working with check boxes

msal4434
Occasional Contributor

working with check boxes

I am trying to check the status of the checkbox (True or False). I can see checked status property in object property but couldn't get it when writing script

I can see checked status in object property but couldn't get it when writing the script...

 

Screenshot attached

3 REPLIES 3
baxatob
Community Hero

Debug your script. Run yourCheckbox.Checked and see what returns. 

What do you mean "you can't get it" when running a script?

 

What happens? Do you get an error? The wrong value? Nothing?

 

What happens?

 

It's a basic object property. So it should be a simple collection of it's value in a run. So either the object is not mapped right, so not being found. Or you're reading the wrong property. Or you are not refreshing the object state before querying it? Or something else ......

 

A little more info on:

 

1 - What your script is trying to do, and the steps leading up to this.

2 - What happens when you "can't get it". (Error messages etc)

John_Laird
Contributor

Did you read this...

 

https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/check-box/wstate-prop...

 

^Just remember you are looking for an integer not a Boolean value (wState has three states).

cancel
Showing results for 
Search instead for 
Did you mean: