[wtr-general] Adding Date

2008-11-17 Thread Sunil Philip
Hi All.. Need help regarding adding date. In my application, there is a text field which shows the system date. And i need to copy the next date to another text field. What i curently do is, i add a number to the date and then put that in the requried text field. Problem occurs when the date is

[wtr-general] Re: Should Tutorial and Quickstart be updated to use Watir::Browser?

2008-11-17 Thread Chuck vdL
I'm just getting started learning Watir, I've not even finished the tutorial (distractions at work keep pulling me away) and I only now many of the items I mentioned because either other folks have told me they exist (firebug) or because I saw references to them in other messages here in the

[wtr-general] Re: Adding Date

2008-11-17 Thread Alan Baird
Sunil - You want the Time class which is one of Ruby's core classes (see http://www.ruby-doc.org/core/ http://www.ruby-doc.org/core/look for the Time class). Here are some examples that may help: irb(main):014:0 require 'time' = true irb(main):016:0 t = Time.parse(30-11-2008) = Sun Nov 30

[wtr-general] Browser locale setting

2008-11-17 Thread codek
Hi, Is it possible to change IE's locale using watir? We need to do this as we have an app that displays localised content based on the browsers locale setting - and we need to regression test this code. If not has anyone come across any other tools to do this? I guess I could use a generic

[wtr-general] What Watir uses to control the browser?

2008-11-17 Thread Xuan Ngo
What Watir uses to control the browser? Is it like Selenium, it uses JavaScript to control the browser? Xuan. __ Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at

[wtr-general] Re: What Watir uses to control the browser?

2008-11-17 Thread marekj
On Mon, Nov 17, 2008 at 9:52 AM, Xuan Ngo [EMAIL PROTECTED] wrote: What Watir uses to control the browser? Is it like Selenium, it uses JavaScript to control the browser? Xuan. magic, and some more magic But for IE we connect to COM object and for Firefox we connect with JSSH (javascriptt

[wtr-general] how to attach to Firefox browser

2008-11-17 Thread marekj
Need help understanding something. My main way of attaching to an already existing window for IE is: browser = Watir::IE.attach how, what it returns a ref to IE and I can continue with my tests without starting any new windows. It allows me to stop tests. setup some conditions manually and

[wtr-general] Re: Adding Date

2008-11-17 Thread Sunil Philip
Thanks for the solution Alan. I also got 2 other methods which are given below: Method 1: require 'date' temp = Date::today+1 puts(temp.strftime(%d-%b-%Y).upcase) Method 2: (I got it from this group itself) require 'date' #Date Add Function def date_add(mth,day,yr) #Set Date Variable

[wtr-general] Re: Adding Date

2008-11-17 Thread Paul Rogers
I think watir now includes active support ( and if it doesnt its easy to add it anyway) then you can do things like this: irb(main):001:0 require 'date' = true irb(main):002:0 require 'activesupport' = true irb(main):003:0 Date.today + 2.days = Wed, 19 Nov 2008 Paul On Mon, Nov 17, 2008 at