Single = statement is assignment though ruby usually warns you.
comparison is ==
 
 
On Thursday, October 18, 2012 5:27:33 PM UTC-5, Ry wrote:

> Is there a better way to write this?
>  
> my goal to verifying text exists on the page and if it does to return to 
> previous page otherwise close the window
>  
> When /^I should be taken to the my text page$/ do
>
>            if ie.text('Modification of awesome things').visible? = true
>                then ie.back
>                     else ie.close
>       end
> end
>  
> my error when running this is 
>  
>  syntax error, unexpected keyword_else, expecting $end
>         else ie.close
>

-- 
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