Thursday , April 24 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 S

I am a Test Engineer at EY. I own Nucleation. I am good at HP ALM, QTP, Excel VBA and much more. I love to share my knowledge in Software Testing and other technologies through Nucleation. Keep in touch with me by visiting my profile in the sites given below.