Re: [wtr-general] Re: Calendar Click

2010-08-12 Thread Željko Filipin
On Thu, Aug 12, 2010 at 3:56 PM, Super Kevy wrote: > sleep 2000 # a 2 second pause. I think this will pause for 2000 seconds. :) Ž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

[wtr-general] Re: Calendar Click

2010-08-12 Thread Super Kevy
I guess our "test" programmer does undestand the questions being asked: The question is about your system environment. What is the version of watir on your machine? Željko gave you syntax to return the value via a command prompt. His hint is a command line script. In a *.rb file do this noting t

[wtr-general] Re: Calendar Click

2010-08-11 Thread Chuck van der Linden
Gah correction, you'd want the sleep after the picking of the number of adults, as that is the last step before it tries to click the search button If you watch the UI carefully I'll bet there's a warning being displayed after the button is clicked. You can see that manually by only filling in s

[wtr-general] Re: Calendar Click

2010-08-11 Thread Chuck van der Linden
When something works if you enter the commands manually, but fails when run from script, the most often issue is one of timing, and allowing for client side javascript or other rendering details to be processed. Usually all that means is you just need a little time added between the last working c

Re: [wtr-general] Re: Calendar Click

2010-08-11 Thread Željko Filipin
On Wed, Aug 11, 2010 at 3:01 PM, madhu kumar wrote: > If i type this command directly in command prompt its working fine I do not know how to make this more explicit. If I do this in command prompt, I get 1.6.5. What do you get? C:\>ruby -e 'require "rubygems"; require "watir"; puts Watir::IE::V

Re: [wtr-general] Re: Calendar Click

2010-08-11 Thread madhu kumar
Hi Zeljko, If i type this command directly in command prompt its working fine, But if save this command in note pad and if i execute by load "filename.rb". its not clicking the button. Regards, Madhu On Wed, Aug 11, 2010 at 5:19 PM, Željko Filipin < zeljko.fili...@wa-research.ch> wrote: > On We

Re: [wtr-general] Re: Calendar Click

2010-08-11 Thread Željko Filipin
On Wed, Aug 11, 2010 at 1:30 PM, madhu kumar wrote: > that command working fine. What did it return? Ž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/gro

Re: [wtr-general] Re: Calendar Click

2010-08-11 Thread madhu kumar
Hi Zeljko, that command working fine. but in my watir script for cleartrip, only button click line is not working, may i know what is the problem. I am also using firefox 3.6.8. require 'watir' Watir::Browser.default = "firefox" b = Watir::Browser.start("http://www.cleartrip.com";) b.radio(:id, "r

Re: [wtr-general] Re: Calendar Click

2010-08-11 Thread Željko Filipin
On Wed, Aug 11, 2010 at 1:03 PM, madhu kumar wrote: > ruby -e 'require "watir"; puts Watir::IE::VERSION' if i run this command i am getting error as no such file to load. Try this: ruby -e 'require "rubygems"; require "watir"; puts Watir::IE::VERSION' Željko -- Before posting, please read htt

Re: [wtr-general] Re: Calendar Click

2010-08-11 Thread madhu kumar
Hi, ruby -e 'require "watir"; puts Watir::IE::VERSION' if i run this command i am getting error as no such file to load. Regards, madhu On Wed, Aug 11, 2010 at 4:29 PM, Željko Filipin < zeljko.fili...@wa-research.ch> wrote: > On Wed, Aug 11, 2010 at 12:56 PM, madhu kumar wrote: > > first comma

Re: [wtr-general] Re: Calendar Click

2010-08-11 Thread Željko Filipin
On Wed, Aug 11, 2010 at 12:56 PM, madhu kumar wrote: > first command i am not able to run What does that mean? Ž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.goog

Re: [wtr-general] Re: Calendar Click

2010-08-11 Thread madhu kumar
Hi Željko, first command i am not able to run, but my ruby version is 1.8.6, gem 1.3.7, watir 1.6.5 and i run this command in 3.6.8 firefox browser. except last line(search flights button), everything is working fine. may i know the problem if possible. Regards, Madhu On Wed, Aug 11, 2010 at 4:15

Re: [wtr-general] Re: Calendar Click

2010-08-11 Thread Željko Filipin
On Wed, Aug 11, 2010 at 12:42 PM, madhu kumar wrote: > k fine, but my gem version is 1.3.7, how can i install watir 1.6.5 version, how can i know which version of watir in command prompt. run this in command prompt and let me know what you get: ruby -e 'require "watir"; puts Watir::IE::VERSION'

Re: [wtr-general] Re: Calendar Click

2010-08-11 Thread madhu kumar
k fine, but my gem version is 1.3.7, how can i install watir 1.6.5 version, how can i know which version of watir in command prompt. Regards, Madhu On Wed, Aug 11, 2010 at 2:57 PM, Željko Filipin < zeljko.fili...@wa-research.ch> wrote: > On Wed, Aug 11, 2010 at 11:19 AM, madhu kumar wrote: > >

Re: [wtr-general] Re: Calendar Click

2010-08-11 Thread Željko Filipin
On Wed, Aug 11, 2010 at 11:19 AM, madhu kumar wrote: > am not getting any error message, but its not clicking the search flights button after running the script I have executed your script, and http://www.cleartrip.com/flights/search/suggest... page opened after the last line. Ruby 1.8.7, Wati

Re: [wtr-general] Re: Calendar Click

2010-08-11 Thread madhu kumar
Hi, am not getting any error message, but its not clicking the search flights button after running the script require 'watir' Watir::Browser.default = "firefox" b = Watir::Browser.start("http://www.cleartrip.com";) b.radio(:id, "rnd_trip").set b.text_field(:name, "origin").set "New Delhi" b.text

Re: [wtr-general] Re: Calendar Click

2010-08-11 Thread Željko Filipin
On Wed, Aug 11, 2010 at 8:41 AM, madhu kumar wrote: > after this script if i click on submit button, m not able to click the button, and cursor is in calendar field only. What is the problem? You can not click "Search flights" button at http://www.cleartrip.com? What have you tried? What happens

Re: [wtr-general] Re: Calendar Click

2010-08-10 Thread madhu kumar
Hi, Thank you its working fine, after this script if i click on submit button, m not able to click the button, and cursor is in calendar field only. Regards, Madhu On Wed, Aug 4, 2010 at 4:18 PM, Pallavi Sharma wrote: > Hi > > This would work: > > require "watir" > browser = Watir::Browser.start

Re: [wtr-general] Re: Calendar Click

2010-08-04 Thread Pallavi Sharma
Hi This would work: require "watir" browser = Watir::Browser.start("http://www.cleartrip.com/";) browser.radio(:id => "rnd_trip").set # set round trip radio button browser.image(:src => /calendar_icon.gif/).click # click the first calendar browser.image(:src => /calendar_icon.gif/, :index => 2).c

Re: [wtr-general] Re: Calendar Click

2010-08-04 Thread Željko Filipin
On Wed, Aug 4, 2010 at 12:42 PM, madhu kumar wrote: > browser.image(:src => "/images/global/calendar_icon.gif").click, i am getting error as Watir::Exception::UnknownObjectException: unable to locate element, using :src => "/images/global/calendar_icon. and its showing error as assert_exit and ena

Re: [wtr-general] Re: Calendar Click

2010-08-04 Thread madhu kumar
Hi, After typing this command browser.image(:src => "/images/global/calendar_icon.gif").click, i am getting error as Watir::Exception::UnknownObjectException: unable to locate element, using :src => "/images/global/calendar_icon. and its showing error as assert_exit and enabled. Regards, Madhu O

Re: [wtr-general] Re: Calendar Click

2010-08-04 Thread Željko Filipin
On Wed, Aug 4, 2010 at 12:23 PM, madhu kumar wrote: > I tried this commands its not coming, its showing some errors, i have attached that screenshot, please find the attachment. Are you at the right page? By the way, you can copy/paste text from command prompt, there is no need for screen shots

Re: [wtr-general] Re: Calendar Click

2010-08-04 Thread Željko Filipin
This worked for me: require "watir" browser = Watir::Browser.start("http://www.cleartrip.com/";) browser.radio(:id => "rnd_trip").set # set round trip radio button browser.image(:src => "/images/global/calendar_icon.gif").click # click the first calendar browser.image(:src => "/images/global/calen

Re: [wtr-general] Re: Calendar Click

2010-08-04 Thread madhu kumar
Hi Zeljko, Hi have used this to commands to click the calendar date, i need to click one more calendar in the same page, index method is not working. if we select the roundtrip the second calendar is going to activate. (www.cleartrip.com) b.image(:src, "/images/global/calendar_icon.gif").click b.l

Re: [wtr-general] Re: Calendar Click

2010-08-04 Thread Željko Filipin
On Wed, Aug 4, 2010 at 7:02 AM, madhu kumar wrote: > have u got any result,(www.cleartrip.com) What is the problem? I believe we have answered your question. Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message be

Re: [wtr-general] Re: Calendar Click

2010-08-03 Thread madhu kumar
Hi guys, have u got any result,(www.cleartrip.com) Please tell me. Regards, Madhu On Tue, Aug 3, 2010 at 7:21 PM, Super Kevy wrote: > The question also needs to be asked: Does this functionality need > critical assesment through test automation or is it more appropriately > validated by a manual

[wtr-general] Re: Calendar Click

2010-08-03 Thread Super Kevy
The question also needs to be asked: Does this functionality need critical assesment through test automation or is it more appropriately validated by a manual test. Give the it the Tosh.0 breakdown. - I need to only input a date and then move on (im just submitting a form) - I need to check the c

[wtr-general] Re: Calendar Click

2010-08-03 Thread gs
Hi, Second calendar works but first the radio button "Round trip" needs to be clicked :) Br, GS On Aug 3, 3:05 pm, Željko Filipin wrote: > On Tue, Aug 3, 2010 at 3:02 PM, madhu kumar wrote: > > That command is not working. just check the websitewww.cleartrip.com > > I was there, but I the seco

Re: [wtr-general] Re: Calendar Click

2010-08-03 Thread Željko Filipin
On Tue, Aug 3, 2010 at 3:02 PM, madhu kumar wrote: > That command is not working. just check the website www.cleartrip.com I was there, but I the second calendar is not displayed even when I try it manually (I have clicked the calendar icon). I have tried with IE 8 and FF 3.6.8. Does it work for

Re: [wtr-general] Re: Calendar Click

2010-08-03 Thread madhu kumar
That command is not working. just check the website www.cleartrip.com and please let me know. and i used this command to recognize one calendar, and i need to recognize one more. b.image(:src, "/images/global/calendar_icon.gif").click b.link(:text, 5).click Regards, Madhu On Tue, Aug 3, 2010 at 6

Re: [wtr-general] Re: Calendar Click

2010-08-03 Thread Željko Filipin
2010/8/3 madhu kumar > Ok but two calendars are there in that website, we can use this one for one calendar, how can i recognise second one. This should work: browser.image(:alt => "Calendar", :index => 2).click but something is wrong with the page, I can not get the second calendar to show up

Re: [wtr-general] Re: Calendar Click

2010-08-03 Thread madhu kumar
Ok but two calendars are there in that website, we can use this one for one calendar, how can i recognise second one. Please help me. On Tue, Aug 3, 2010 at 2:18 PM, gs wrote: > Hi, > > After investigation on the www.cleartrip.com page: > to click the calendar: > > ie.image(:alt, "Calendar").cl

[wtr-general] Re: Calendar Click

2010-08-03 Thread gs
Hi, After investigation on the www.cleartrip.com page: to click the calendar: ie.image(:alt, "Calendar").click and to click on exact day : ie.link(:text, "12").click (try to user firebug under firefox to find the element you would like to work with or iedeveloper tool bar) Worked for me. Br