| || |
I want to check the checxbox using SQASetProperty. How to use this exactly. I tried but it failed.
On my HTML page there is one checkbox.
I am taking value from datapool as 0 or 1. Now, If value is 1 I want to check/select this checbox using SQASetProperty. But what i tried is not working. can anybody give me the code for this.
If ValueFromDP = 1 Then
' Set the Checked property to True (boolean values in Robot are represented as
' 0 (False) and -1 (True)
SQASetProperty "Name=cboxName", "Checked", -1
ElseIf ValueFromDP = 0 Then
' Set the Checked property to False (same as above)
SQASetProperty "Name=cboxName", "Checked", 0