Re: [Wtr-general] problem in identifying the button

2007-04-02 Thread ankur bajpai
Hi Angrez Thanks for ur response..but its not working.I cannot access the root directory of "some path" Is there any other way out? Also where can i get a exhaustive list of all the ways to access n click all types of buttons? On 3/30/07, Angrez Singh <[EMAIL PROTECTED]> wrote: Hi, try t

Re: [Wtr-general] Count checked checkbox

2007-04-02 Thread Maisonnette
Ok thank you very much for your explain... This code work ! Fabien ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] problem in identifying the button

2007-04-02 Thread ankur bajpai
Hi Thanks for ur response..but its not working.I cannot access the root directory of "some path" Is there any other way out? Also where can i get a exhaustive list of all the ways to access n click all types of buttons? On 3/30/07, Željko Filipin <[EMAIL PROTECTED]> wrote: Try this. ie.i

Re: [Wtr-general] IDEs for Watir

2007-04-02 Thread Željko Filipin
On 4/1/07, aidy lewis <[EMAIL PROTECTED]> wrote: Could you please tell me what version of the ruby interpreter you are using with Arachno Ruby to allow the debug to run? ruby 1.8.2 (2004-12-25) [i386-mswin32] -- ZeljkoFilipin.com ___ Wtr-general mai

[Wtr-general] HTML element physical location on screen.

2007-04-02 Thread Vamsee Krishna M
Hi, Is it possible get physical location of an html element relative to screen ? Since watir can't drive the mouse, I want this location so that I can go to that location and do a physical click through a thridpary tool like autoit. I don't want to do it through fire_event since it can't fire rig

Re: [Wtr-general] problem in clicking button

2007-04-02 Thread VIKASH KUMAR
I have a button in my web page, the relevant snippet of html is as follows:   Sign In This button can be click using watir by ie.button(:value,'Sign In').click, but in case of FireWatir, the same syntax gives error. The Error is as follows : c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.0.1-mswi

Re: [Wtr-general] problem in clicking button

2007-04-02 Thread Prema Arya
Hi Vikash, Thanks for raising the issue. We are working on FireWatir to remove all the gaps it has with Watir so that there is no need to change scripts. For now you can click the button using text and type properties, this works on Watir also. ff.button(:text, "Sign In") ff.button(:type

[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

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

Re: [Wtr-general] HTML element physical location on screen.

2007-04-02 Thread Paul Rogers
I think you can do a right click by ie.button(:id, 'xx').fire_event('onContextMenu') if that doesnt work, this might be what you need to help get the coordinates http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/getclientrects.asp http://msdn.microsoft.com/workshop/author/dhtml/

Re: [Wtr-general] little framework

2007-04-02 Thread aidy lewis
#Hi, #This is what I have got, I don't think it is anything new: #each page has a class where objects of that class are mapped class Login def username;$ie.text_field(:name, 'user_name');end def password;$ie.text_field(:name, 'password');end def remember_me;$ie.checkbox(:name, 'remember_me'

Re: [Wtr-general] little framework

2007-04-02 Thread Paul Rogers
instead of explitily asserting the existance of all the elements, Id try and come up with an easier way, ( this probably wont work, but it might, and may give you some ideas ) def username;$ie.text_field(:name, 'user_name');end def password;$ie.text_field(:name, 'password');end def remembe

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 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] little framework

2007-04-02 Thread John Lolis
Looks good. In your setup I would wrap $ie with a global function (internet_explorer or some such). I would then use that global function through out your class files. This could save you a headache down the road :) ___ Wtr-general mailing list Wtr-gen

Re: [Wtr-general] problem in clicking button

2007-04-02 Thread VIKASH KUMAR
Hi Prema, Thanks for your reply, but when I used this ff.button(:text, "Sign In").click It throws error, as shown below irb(main):016:0> ff.button(:text,"Sign In").click FireWatir::Exception::UnknownObjectException: Unable to locate object, using text and Sign In from c:

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

[Wtr-general] Stable version for watir and ruby

2007-04-02 Thread Sayali Patil
Hi All, Which is the stable version of watior and ruby to use . I used the latest one ,which gives me this error frequently and sometimes it works fine. WIN32OLERuntimeError: unknown property or method `getAttributeNode' HRESULT error code:0x80070005 Access is denied. Please let me know.

Re: [Wtr-general] Can we use as many variable names without worrying about memory wastage

2007-04-02 Thread vijay
Thanks for all your answers. They were really helpful to me. One small question, do we need to invoke "Garbage Collector" explictly and if so, how? Thanks, Vijay. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/list