automated tests - QTP: Getting the value of a checkbox -
I want to know how many check boxes are present on the home page and I want to check the check box or not ... ..
My code ....
set obj = Description.Create () obj ("name"). Value = "persistent cookie" ("name: = Gmail. *", "Title: = Gmail. *"). Page = "input" = "INPUT" obj ("type"). ("Title: = Gmail. *"). Childobjects (OBJ) MSBbox ACC = Browser ("name: = Gmail. *", "Title: = Gmail. *"). Page ("Title: = Gmail *") The value of GetROProperty ("Check") MsgBox c c is always "off", I also checked the checkbox (remember me on this computer) and Execute the code above but the value of c is always "off"
Please help me with this thanks in advance ...
Please answer this. GetroProperty running on the page object
- Checks instead of checkboxes You got (I do not know why in the page a Checked property ), but if you run on the test item returned by the ChildObjects then you enter the correct value ( true 0 for false ).
c = a (0) .GetROProperty ("check")
Comments
Post a Comment