[wtr-general] Re: Rich calender how to get value

2010-07-08 Thread Chuck van der Linden
They are both failing because as I indicated earlier, there is more than one cell in the table with the text '30 in it.Try using both the class of the cell, and the text, as I specifically said in an earlier response There is first this 'boundary' one from the month before TD

[wtr-general] Re: Rich calender how to get value

2010-07-06 Thread naresh
Hi, I tried both option, but i am getting same exception unable to locate element ie.table(:id, globalForm:startDateDecorate:startDate).cell(:text,30).click Or ie.cell(:text, 30).click c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:56:in `assert_ex ists': Unable to locate

[wtr-general] Re: Rich calender how to get value

2010-07-01 Thread naresh
Hi, I am using below line to click date in calender ie.cell(:class = rich-calendar-input rich-calendar- button,:text=Monday,:text=March).click; but i am getting exception. c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:56:in `assert_ex ists': Unable to locate element,

Re: [wtr-general] Re: Rich calender how to get value

2010-07-01 Thread Željko Filipin
On Thu, Jul 1, 2010 at 12:03 PM, naresh nareshvatsa...@gmail.com 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

[wtr-general] Re: Rich calender how to get value

2010-07-01 Thread naresh
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,

Re: [wtr-general] Re: Rich calender how to get value

2010-07-01 Thread Željko Filipin
On Thu, Jul 1, 2010 at 12:44 PM, naresh nareshvatsa...@gmail.com wrote: Can anyone tell me in below script , what is monthLabels,weekDayLabels, are these cell or link in calender. Do you know that javascript can create HTML? Calendar that you want to automate is not visible in page source, it

[wtr-general] Re: Rich calender how to get value

2010-07-01 Thread naresh
Hi, I tried to select date with following ie.table(:id, globalForm:startDateDecorate:startDate).link(:text, 30).click i got exception Unable to locate element, using :text, 30 unknownobjectexcception. In IE dev toolbar HTML code is for rich-calender is like below TABLE

Re: [wtr-general] Re: Rich calender how to get value

2010-07-01 Thread Željko Filipin
Does this work? ie.table(:id, globalForm:startDateDecorate:startDate).cell(:text, 30).click Or this? ie.cell(:text, 30).click If it clicks the date, but nothing happens, you probably have to fire some JS event. Željko -- Before posting, please read http://watir.com/support. In short: search

Re: [wtr-general] Re: Rich calender how to get value

2010-06-30 Thread Wesley Chen
If you are not sure what you want to do, please try the cases you have. Wesley. For life, the easier, the better. On Wed, Jun 30, 2010 at 1:38 PM, naresh nareshvatsa...@gmail.com wrote: Hi, I am confused in rich calender, i need to click image and then get elements or do like following

[wtr-general] Re: Rich calender how to get value

2010-06-30 Thread Chuck van der Linden
You have to ask yourself how much value you provide to your project by testing some third party tool beyond it's being integrated properly into your product. If it was me, I'd look for the most expedient way to get the value I needed 'set' If the calendar has an input box that accepts my typing

[wtr-general] Re: Rich calender how to get value

2010-06-29 Thread Chuck van der Linden
If it's the same as the sample that was linked early in the thread, when this control is rendered in the UI, it is a series of table cells, and each cell is 'wired' for a number of events. You may need to experiment with what events are fired in what order, I'd start however with trying the

[wtr-general] Re: Rich calender how to get value

2010-06-29 Thread naresh
Hi, I am confused in rich calender, i need to click image and then get elements or do like following ie.cell(:class = j_id354_j_id355DayCell rich-calendar-cell rich- calendar-btn, :text = 16).click which Linden suggested. I am confused class, there is 2 classes in HTML code.

[wtr-general] Re: Rich calender how to get value

2010-06-28 Thread naresh
Hi, Anyone can guide me? I am struck in calender. Regards, Naresh On Jun 25, 4:44 pm, naresh nareshvatsa...@gmail.com wrote: Hi , s:decorate id=endDateDecorate template=../layout/edit.xhtml ui:define name=label#{label.title_end_date}:/ui:define rich:calendar

Re: [wtr-general] Re: Rich calender how to get value

2010-06-28 Thread Željko Filipin
On Mon, Jun 28, 2010 at 12:54 PM, naresh nareshvatsa...@gmail.com wrote: Anyone can guide me? I am struck in calender. Which HTML element do you need to access (click, set...) in the HTML you have provided? Željko -- Before posting, please read http://watir.com/support. In short: search

[wtr-general] Re: Rich calender how to get value

2010-06-28 Thread naresh
i want to click calender and select date 28-May-2010. On Jun 28, 3:59 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, Jun 28, 2010 at 12:54 PM, naresh nareshvatsa...@gmail.com wrote: Anyone can guide me? I am struck in calender. Which HTML element do you need to access

Re: [wtr-general] Re: Rich calender how to get value

2010-06-28 Thread Željko Filipin
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

[wtr-general] Re: Rich calender how to get value

2010-06-28 Thread naresh
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 calenderrich:calender

[wtr-general] Re: Rich calender how to get value

2010-06-25 Thread naresh
Hi , s:decorate id=endDateDecorate template=../layout/edit.xhtml ui:define name=label#{label.title_end_date}:/ui:define rich:calendar value=#{eventBean.instance.endDate} timeZone=#{org.jboss.seam.international.timeZone} enableManualInput=true datePattern=dd-MM- id=endDate/ / s:decorate HTML

[wtr-general] Re: Rich calender how to get value

2010-06-24 Thread naresh
Hi , Fot input text , text_field method is available. What method is available for following rich calender rich:calendar value=#{eventBean.instance.endDate} timeZone=#{org.jboss.seam.international.timeZone} enableManualInput=true datePattern=dd-MM- id=endDate/ Regards On Jun 24, 4:10 

[wtr-general] Re: Rich calender how to get value

2010-06-24 Thread orde
I google'd up a RichFaces example: http://livedemo.exadel.com/richfaces-demo/richfaces/calendar.jsf. It looks like you don't enter the date into the text field, but-- rather--you click on the calendar icon and select a date. Peeking at the (ajax-heavy) HTML, you'll probably need to click on the