Tuesday , September 16 2014
Home » Testing » QTP » Function to Check or Uncheck a Web Checkbox
Function to Check or Uncheck a Web Checkbox
Check or Uncheck Web Checkbox

Function to Check or Uncheck a Web Checkbox

Function which checks or uncheck a web checkbox. This QTP function will check or uncheck the specified web checkbox based on the value given in function call.

Function Usage
You can use this function to check or uncheck specific check boxes on a web page. Let us assume that you want to uncheck the senior citizen checkbox against ‘Passenger 1’ and check the checkbox against ‘Passenger 2’. To do this you have to add both ‘Passenger 1’ checkbox and ‘Passenger 2’ checkbox to your object repository.

SNo
Name
Senior Citizen
1
Passenger 1
2
Passenger 2
3
Passenger 3
4
Passenger 4
5
Passenger 5

Syntax

The Function

About Kannan Suresh

I am a software test engineer at EY & proud owner of Nucleation. I love to share my knowledge in UFT, ALM, Excel VBA & other technologies through Nucleation. Keep in touch with me by visiting the links below.