Paul Carvalho wrote:
>    if t_ie.span(:id, /PageHeadingLabel/).text.include?( /Create|Update/ )
>
the "include?" method is for strings, not regular expressions. Try:

if t_ie.span(:id, /PageHeadingLabel/).text.match( /Create|Update/ )

or

if t_ie.span(:id, /PageHeadingLabel/).text =~ ( /Create|Update/ )

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to