Hi Bret,
> class AddMatterDialogMap
> def initialize (modal)
> @browser = modal
> end
......
> def open_date; @browser.text_field(:id, 'txtOpenDate'); end
> def matter_type; @browser.select_list (:id, 'ddMatterType'); end
.......
> end
> So to use this ...
> map = AddMatterDialogMap.new ie
> map.open_date.set '1/1/06'
This is a good solution. But how would you organise your navigaton and
action methods?
for example
def goto_country_list .... end
def enter_country(country) ... end
Would you create new classes? At the moment I have a module for each window
with methods contained that are relevant to that window.
Aidy
---------------------------------------------------------------------------------------------------------------
This message and any attachment are confidential and may be privileged or
otherwise protected from disclosure.
If you are not the intended recipient, please telephone or email the sender and
delete this message and any attachment from your system.
If you are not the intended recipient you must not copy this message or
attachment or disclose the contents to any other person.
---------------------------------------------------------------------------------------------------------------
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general