| || |
How to write the code for WebCheck Box
I am working on QTP. In our application i have 3 checkboxs. and i have the graphs also(these graphs displayed based on which check box is selected).
Here is the example. Population, age ,Amount these are checkpoints. when i select the population checkbox it displayed population graph. and when i select the population ,age check boxs select it's displayed 2 grpahs. How can i write the script for above scenario.
can i use case statement. Please any one help me.
Re: How to write the code for WebCheck Box
1. For each check Box you can save values as Y ( for Check) or N (Not checked) in a data table.
2. Read the values from the Data Table.
3. set the Check Box for value of Y or Uncheck the Check box for value N . Use If Else statements. You would have 3 If Else i.e 1 for each Check Box