Hi ,
Can anyone tell me in below script , what is
monthLabels,weekDayLabels, are these cell or link in calender.
I am trying to select, Monday,March from calender.
I used 2 approach
ie.cell(:class => "rich-calendar-inputrich-calendar-button",:text=>/
Monday.*March/).click;
ie.table(:id,
"globalForm:startDateDecorate:startDate").link(:weekDayLabels,
"Monady").link(:monthLabels, "March").click
I am getting exception unable to locate object.
<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>
On Jul 1, 3:16 pm, Željko Filipin <[email protected]>
wrote:
> On Thu, Jul 1, 2010 at 12:03 PM, naresh <[email protected]> wrote:
> > ie.cell(:class => " rich-calendar-input rich-calendar-
> > button",:text=>"Monday",:text=>"March").click;
>
> Several problems:
>
> - leading space in " rich-calendar..."
> - you are saying that there is cell with exactly text "Monday" and "March" -
> a cell can have exactly one of two strings, not both
> - if both texts should be in the same cell, try this
>
> ie.cell(:class => "rich-calendar-input
> rich-calendar-button",:text=>/Monday.*March/).click;
>
> Ž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: [email protected]
To unsubscribe: [email protected]