Highlighted
Absent Member.
Absent Member.
912 views

Validate if checkbox is checked in truclient script

I have a script where i need to identify if a checkbox is checked and check it if its not already checked. How to achieve this in truclient protocol.

0 Likes
3 Replies
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Validate if checkbox is checked in truclient script

Hi,

1. Drop a Generic Object Action step from the toolbox

2. Select the checkbox you would like to query

3. Change the step action from Click to Get Property

4. In the Arguments section change the propery to Checked and provide a variable name to which the value will be saved

5. Now you can query that variable in another step. For example: drop If Block from the toolbox and branch the script according to the value of the checkbox

Hope it helps

Good luck

Shlomi

 

Highlighted
Absent Member.
Absent Member.

Re: Validate if checkbox is checked in truclient script

Thanks @Shlomi Nissim But how will i give comparison condition in the if block - consider variable name as "vcondition"
0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Validate if checkbox is checked in truclient script

Check attached image

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.