using the page object pattern might be a better solution to address
what you are doing there.  Gives you one place to update should any of
those ID values change, and a lot more readable code in most cases

Here's an example: 
http://watir.com/2011/01/22/simple-cucumber-watir-page-object-pattern-framework/





On Dec 14, 1:24 pm, Abe Heward <abe.hew...@gmail.com> wrote:
> Never mind. I figured it out.  My method def was missing a "self." ...
>
> def *self.*menu(name, menu_id, link_id, target_class)
>     define_method(name) {
> ....

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

Reply via email to