Hi All, i am using internet explorer to test my web application. I have to click save button in my application to create record. I am able to set value for textfield,radibutton,selectlist in watir script , but not able to set/pickup value for calender. This calender is rich calender<rich:calender> from Rcihfaces. The html code generated i am pasting once again. I want to pick up date like 28-May-2010 or any other date.
<div id="globalForm:startDateDecorate"> <div class="prop"><label for="globalForm:startDateDecorate:startDate" class="name ">Start Date:</label> <span class="value "><span id="globalForm:startDateDecorate:startDatePopup"> <input class="rich-calendar-input " id="globalForm:startDateDecorate:startDateInputDate" name="globalForm:startDateDecorate:startDateInputDate" style="vertical- align: middle; " type="text" /><img alt="" class="rich-calendar-button " id="globalForm:startDateDecorate:startDatePopupButton" style="vertical-align: middle" src="/venus/a4j/g/ 3_3_1.GAorg.richfaces.renderkit.html.iconimages.CalendarIcon/DATB/ eAE7fv4Kw6znAA4mA-w_" /><input id="globalForm:startDateDecorate:startDateInputCurrentDate" name="globalForm:startDateDecorate:startDateInputCurrentDate" style="display:none" type="hidden" value="06/2010" /></span><div id="globalForm:startDateDecorate:startDateIFrame" style="display: none;"></div><div id="globalForm:startDateDecorate:startDate" style="display: none;"></div><div id="globalForm:startDateDecorate:startDateScript" style="display: none;"><script type="text/javascript">new Calendar('globalForm:startDateDecorate:startDate', {dayListTableId: 'globalForm:startDateDecorate:startDateDay', weekNumberBarId: 'globalForm:startDateDecorate:startDateWeekNum', weekDayBarId: 'globalForm:startDateDecorate:startDateWeekDay', currentDate: new Date(2010,5,25), selectedDate: null, datePattern: 'dd-MM-yyyy', jointPoint: 'bottom-left', direction: 'bottom-right', boundaryDatesMode:'inactive', popup: true, enableManualInput: true, showInput: true, disabled: false, readonly: false, ajaxSingle: true, verticalOffset:0, horizontalOffset: 0, style:'z-index: 3; ', firstWeekDay: 0, minDaysInFirstWeek: 1, todayControlMode:'select', showHeader:true, showFooter:true, showWeeksBar:true, showWeekDaysBar:true, showApplyButton:false, resetTimeOnDateSelect:false, defaultTime:{hours:12,minutes:0}, labels:{apply:'Apply', today:'Today', clean:'Clean', cancel:'Cancel', ok:'OK', close:'x'}, 'monthLabels': ['January','February','March','April','May','June','July','August','September','October','November','December'] , 'monthLabelsShort': ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'] , 'weekDayLabels': ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'] , 'weekDayLabelsShort': ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'] }).load();</script></div> </span> <span class="error"> </span> </div></div> On Jun 28, 4:29 pm, Željko Filipin <zeljko.fili...@wa-research.ch> wrote: > On Mon, Jun 28, 2010 at 1:22 PM, naresh <nareshvatsa...@gmail.com> wrote: > > i want to click calender > > I am asking what do you need to click. Do you know how to use a tool like > Firebug? > > http://getfirebug.com/ > > Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com