Re: [Wtr-general] Assert Dates?

2007-04-03 Thread Chris McMahon
On 4/3/07, Fletch <[EMAIL PROTECTED]> wrote: > Thanks for your replies, > The date guide was really good, but as it is only a String comparison, I did > not want to over complicate the code. > I have also tried the other two suggestions, and have still not been able to > get the match to work. >

Re: [Wtr-general] Assert Dates?

2007-04-03 Thread Fletch
Thanks for your replies, The date guide was really good, but as it is only a String comparison, I did not want to over complicate the code. I have also tried the other two suggestions, and have still not been able to get the match to work. I think that I might have to use an escape. I have tried

Re: [Wtr-general] Assert Dates?

2007-04-02 Thread Bret Pettichord
Ravi wrote: > Replace: > $mainF.contains_text(/myDates/) > with: > $mainF.contains_text("#{myDates}") > This will also work: $mainF.contains_text(myDates) ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wt

Re: [Wtr-general] Assert Dates?

2007-04-02 Thread John Lolis
Thanks for the demo Chris, I haven't messed with dates beyond the basics, this was a nice way to get brought up to speed. While my first thoughts were along the lines of Chris, I think I would go with the string compare. It seems, in his case, that the level of complexity isn't needed. I can se

Re: [Wtr-general] Assert Dates?

2007-04-02 Thread Chris McMahon
> If I use a constant '01/01/07 - 01/01/08' there is no problem, but I need > some way to deal with the dates in the parameters. escape the slashes: /01\/01\/07/ - 01\/01\/08/ That said, anytime I deal with dates, I usually try to make them actual date objects, then I can assert interesting th

Re: [Wtr-general] Assert Dates?

2007-04-02 Thread Ravi
Replace: $mainF.contains_text(/myDates/) with: $mainF.contains_text("#{myDates}") -Ravi ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Assert Dates?

2007-04-02 Thread Fletch
Hello All, I have been working on trying to assert whether a date range is displayed on screen, but have run in to problems and was hoping someone could give me some advice. I have the dates stored in the format dd/mm/yy I want to use a function which takes an arrival date and a departure date