there are having 10 checkboxes..how can i check only first
5 check boxes by using descriptive programing..
Answer Posted / vishnu
// Save the below script in Htm format
<html>
<body>
<form>
YES / NO1: <input type="checkbox" name="CB1"></br>
YES / NO2: <input type="checkbox" name="CB2"></br>
YES / NO3: <input type="checkbox" name="CB3"></br>
YES / NO4: <input type="checkbox" name="CB4"></br>
YES / NO5: <input type="checkbox" name="CB5"></br>
YES / NO6: <input type="checkbox" name="CB6"></br>
YES / NO7: <input type="checkbox" name="CB7"></br>
YES / NO8: <input type="checkbox" name="CB8"></br>
YES / NO9: <input type="checkbox" name="CB9"></br>
</form>
</body>
</html>
'Descriptive Programming
'Suppose we are having 10 checkboxes..How can We check only first 5 check boxes by using descriptive programing?
SystemUtil.Run "iexplore","file:///C:/Users/Administrator/Desktop/sample.htm"
Set BP=Browser("CreationTime:=0").Page("micclass:=Page")
BP.WebCheckBox("name:=CB1").Set "ON" 'ON is used to check
BP.WebCheckBox("name:=CB2").Set "ON"
BP.WebCheckBox("name:=CB3").Set "ON"
BP.WebCheckBox("name:=CB4").Set "ON"
BP.WebCheckBox("name:=CB5").Set "ON"
BP.WebCheckBox("name:=CB6").Set "OFF" 'OFF is used to Not Check
BP.WebCheckBox("name:=CB7").Set "OFF"
BP.WebCheckBox("name:=CB8").Set "OFF"
BP.WebCheckBox("name:=CB9").Set "OFF"
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
what kind of frame work you used in your last project?
How you calling actions in qtp?
What is the meaning Work bench?
Is virtual object supported in low level recording mode?
How is recording done when a application is over lapping the QTP application it gives a message object not recorded
Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?
What is the use of "New Property" in "Add properties" of testobject properties in object repository. How can i use "New properties" while writing scripts if i have assign some values to the testobject properties Can anyone help me? plz
What the differences are and best practical application of Object Repository?
what type of values given to objects. EX::Set oBrowser=Description.Create oBrowser(“micclass”).Value=”Browser”
For which type of projects the iterative model is not suitable?
i am new QTP... please tell me automation frameworks , types & for whiich type of applications frameworks are used & how to generate script in keyword driven framework
What is Associate Repository in QTP 9.2 ?
How do you configure QTP AND Test director?
what is error and fault in terms of software quality?
What is checkpoints for quicktest professional?