how to write code for to select all the checkboxs in the
gmail
i wrote code for my question but it didn't works any body
suggest what wrong my code my code is Set
chkboxDesc=Description.Create()
chkboxDesc("type").value="chekbox"
Set chboxcollection=Browser("name:=Gmail
.*").Page("title:=Gmail .*").ChildObjects(chkboxDesc)
For i=0 To chboxcollection.count-1
chboxcollection(i).set "ON"

Next
i was getting general run time error pls help me i am in
learing stage

Answers were Sorted based on User's Feedback



how to write code for to select all the checkboxs in the gmail i wrote code for my question but i..

Answer / udham singh

chkboxDesc("type").value="chekbox"
replace this line with

chkboxDesc("miclass").value="webchekbox"

in ur code spelling of checkbox is also wrong

Is This Answer Correct ?    4 Yes 1 No

how to write code for to select all the checkboxs in the gmail i wrote code for my question but i..

Answer / chinmay

It is correct.No need to change the code

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

What is driver script and driver script in qtp frame work????

6 Answers   IBM,


what are recovery management techiniques?

1 Answers  


What are table and db checkpoints?

1 Answers  


what type of values given to objects. EX::Set oBrowser=Description.Create oBrowser(“micclass”).Value=”Browser”

1 Answers  


When u r running a script , if u get a popup window that describing that u have received a mail to your outlook application. so to avoid the interference of the popup window , which recovery scenario(popup,object state,application hang,system crash) would u use ?

4 Answers   Accenture,


How to associate function library at a run time?

1 Answers  


What is Port testing. Whhen will you perform?

1 Answers  


Hi I am new to QTP. we are planning to implement automation for the application. I am trying to execute the following script: Set ExcelObj=CreateObject ("Excel.Application") ExcelObj.WorkBooks.Add Set NewSheet=ExcelObj.Sheets.Item(1) NewSheet.Name="Order" ExcelObj.Cells(1, 1).Value = "Name" ExcelObj.Cells(1, 2).Value = "Ordernum" ExcelObj.Cells(2, 1).Value = "nam" ExcelObj.Cells(2, 2).Value = "21" ExcelObj.ActiveWorkbook.SaveAs "c:\test1.xls" ExcelObj.Quit Set ExcelObj = Nothing in the above script for the line(ExcelObj.Cells(2, 2).Value = "21") it is inserting the value 21 successfully.this is fine But if i want to insert a variable instead of the constant value then what should be the modification in the script. For example: If user retrives a value throug "GetRoProperty" and wants to insert the value into then how the script changes?

1 Answers  


Hi ,Can any one pleas explain how to test splash objects using QTP?

1 Answers   Value Labs,


what is the diff between Procedure and function

3 Answers   iFlex,


How u will open the build automatically in QTP except using Systemutil.run command

6 Answers  


What are the properties you would use for identifying a browser and page when using descriptive programming?

1 Answers  


Categories