The example you provide should not give that warning. (It doesn't for me.)I was attempting to use text.include? like:
$ie.text_field(:name, "MyText").text.include? "My text to verify"
And I get this message: " warning: parenthesize argument(s) for future version"
Am I getting this because I am using "text.include?" incorrectly or something else?
But if you are getting that warning in other cases, you can add parens to avoid it.
In Ruby, you can always parenthesize arguments to a method. You only need to do it when there is the possibility of ambiguity. (In other words, parens in Ruby follow the same rules as in math.)
Bret
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
