bruce
unread,Aug 1, 2012, 10:35:18 PM8/1/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to casp...@googlegroups.com
Hi.
I've got a test app that has a series of checkboxes that are in a
form. The test has to select one/multiple checkboxes, and then submit
the form. Successfl submittal of the form, generates the next page.
Each checkbox triggers an onclick event.
I've crafteed my tesst to run, setting a couple of the checkboxes,
using the ID/Name of the checkboxes from the HTML. Without setting the
checkbox, the test runs, the app generates the correct next page.
However, I'm apparently screwing something up, as I can't seem to get
the checkboxes to set via the "fill" method.
My test code is:
<div id="win0divCLASS_SRCH_WRK2_MON"><input type="hidden"
name="CLASS_SRCH_WRK2_MON$chk" id="CLASS_SRCH_WRK2_MON$chk" value="">
<input type="checkbox" name="CLASS_SRCH_WRK2_MON"
id="CLASS_SRCH_WRK2_MON" tabindex="46" value="Y"
onclick="setupTimeout2(); this.form.CLASS_SRCH_WRK2_MON$chk.value=(this.checked?'Y':'N');doFocus_win0(this,false,true);">
</div></td>
this.fill('form[name="win0"]', {
'OSR_CAT_SRCH_WK_DESCR': deptSelVal,
'CLASS_SRCH_WRK2_ACAD_CAREER': careerMenuSelVal,
'CLASS_SRCH_WRK2_CAMPUS': campusMenuSelVal,
'CLASS_SRCH_WRK2_INCLUDE_CLASS_DAYS': dayWeekMenuSelVal,
'CLASS_SRCH_WRK2_SSR_OPEN_ONLY': false,
'CLASS_SRCH_WRK2_MON': true, <<<<<<<<<<<<<<<<<<<< Trying to
set this checkbox!!!
'CLASS_SRCH_WRK2_TUES': false,
'CLASS_SRCH_WRK2_WED': false,
'CLASS_SRCH_WRK2_THURS': false,
'CLASS_SRCH_WRK2_FRI': false,
'CLASS_SRCH_WRK2_SAT': false,
'CLASS_SRCH_WRK2_SUN': false
}, true);
if(debug==1)
{
console.log(' right here......');
console.log(' sb = '+searchBTNID);
}
//this.click('#CLASS_SRCH_WRK2_SSR_PB_CLASS_SRCH');
this.click(searchBTNID);
I've also tried to set the checkbox manually, using a "click" event
prior to filling the form to see if that made a diff...
As far as I can tell, the API indicates that this "should" work.
Thanks for any pointers on this