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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I AM TRYING PORT CODE FROM WINRUNNER TO QTP AND DON'T KNOW TO HOW TO CHECK THE ERRORS. IN WINRUNNER FUNCTION RETURNS EIGHER 0 OR -1 AGAINST WHICH RESULT CAN BE MADE PASS OR FAIL BUT IN QTP I DON'T SEE FUNCTIONS RETURNING ANY VALUE. APPRECIATE IF ANYONE COULD HELP ME CONVERTING FOLLWOING WINRUNNER CODE TO QTP. set_window("Customer Service"); rc = web_obj_get_text("Summary","#2","#4",ssn,""," ",1); if (rc != E_OK) { report_msg("[GetSubscriberSummary] Could Not get subscriber SSN; rc = "&rc); myRC = rc; } else { ssn = StripBlank(ssn); if (DEBUG) report_msg ("[GetSubscriberSummary] SSN: "&ssn); }

1690


Give me some real time point of way where exactly we can conduct audits?

1497


Explain different types of checkpoints?

556


Hi, can explain the draw back of manual testing.plz send me the answer to my mail id deepthip1985@gmail.com

1410


how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods

1377






What is an object repository?

599


what is stepin & stepout?

1418


How is recording done when a application is over lapping the QTP application it gives a message object not recorded

1569


How to execute a winrunner script in quicktest professional?

552


When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti

2487


In QTP can we feed the out of one browser(internet explorer) as an input to the another browser(mozilla firefox)? If yes explain how to do it with an example.

1525


I am Facing Issues with learing datepicker 1)when i first learn datepicker as current system date . 2)if i wanna runtime datepicker value it gives error

2347


How to find the name of the machine where you are running your automation scripts in qtp?

516


What environment does qtp run in?

615


How to handle Java tree in QTP?

742