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,

Re: [Wtr-general] little framework

2007-04-02 Thread Paul Rogers
: aidy lewis [EMAIL PROTECTED] Date: Monday, April 2, 2007 10:48 am Subject: Re: [Wtr-general] little framework #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

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

Re: [Wtr-general] little framework

2007-03-28 Thread aidy lewis
Hi Paul, Could you just please explain how you are mapping something like this: text_field :user_name , :id='username' in the parent class? cheers aidy ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] little framework

2007-03-28 Thread Paul Rogers
initialize @ie = Watir::IE.attach(:title , /google/i ) the_search_box.set('abc') end end d=D.new - Original Message - From: aidy lewis [EMAIL PROTECTED] To: wtr-general@rubyforge.org Sent: Wednesday, March 28, 2007 10:55 AM Subject: Re: [Wtr-general] little framework

[Wtr-general] little framework

2007-03-27 Thread aidy lewis
Hi, Could anyone give me some feedback on this? Each HTML objects exists in a module snip module Field MAP_FIELD = Hash.new {|h,k| k}.update( 'username' = 'login', # gui name = HTML name 'password' = 'password' ) def Field.set(name,args) $ie.text_field(:name,

Re: [Wtr-general] little framework

2007-03-27 Thread Paul Rogers
PROTECTED] Date: Tuesday, March 27, 2007 9:56 am Subject: [Wtr-general] little framework Hi, Could anyone give me some feedback on this? Each HTML objects exists in a module snip module Field MAP_FIELD = Hash.new {|h,k| k}.update( 'username' = 'login', # gui name = HTML name

Re: [Wtr-general] little framework

2007-03-27 Thread aidy lewis
to firefox, or do something different with the browser. Paul - Original Message - From: aidy lewis [EMAIL PROTECTED] Date: Tuesday, March 27, 2007 9:56 am Subject: [Wtr-general] little framework Hi, Could anyone give me some feedback on this? Each HTML objects exists

Re: [Wtr-general] little framework

2007-03-27 Thread Paul Rogers
') at least this way its a bit easier to switch to firefox, or do something different with the browser. Paul - Original Message - From: aidy lewis [EMAIL PROTECTED] Date: Tuesday, March 27, 2007 9:56 am Subject: [Wtr-general] little framework Hi, Could

Re: [Wtr-general] little framework

2007-03-27 Thread Paul Rogers
] Date: Tuesday, March 27, 2007 12:07 pm Subject: Re: [Wtr-general] little framework Ive also been using something like this for model based testing, which really is kind of neat. I was going to say, you could make a state machine for MBT/robot-army-testing out of this fairly easily, eh? -C

Re: [Wtr-general] little framework

2007-03-27 Thread aidy lewis
Paul Rogers says the ParentClass would have methods to validate that everything is there, the title is correct etc. It also has the code to do the translation of the descrptive name ( eg login_button) to the actual element ( button(:value , 'Login Now!') Very good idea. I have been

Re: [Wtr-general] little framework

2007-03-27 Thread Paul Rogers
See below... - Original Message - From: aidy lewis [EMAIL PROTECTED] To: wtr-general@rubyforge.org Sent: Tuesday, March 27, 2007 3:20 PM Subject: Re: [Wtr-general] little framework Paul Rogers says the ParentClass would have methods to validate that everything is there, the title