#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,
: 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
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
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
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
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,
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
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
')
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
]
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
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
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
12 matches
Mail list logo