Instead of having a class map i.e.
class ObjectMap def login_link;$ie.link(:text, 'Log in');end def logout_link;$ie.link(:text, 'Log out');end end Then map = ObjectMap.new map.login_link.click map.logout_link.click why not put the app map in a module so in the script we could just go login_link.click logout_link.click ? Cheers 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
