Hassan Schroeder wrote in post #1136612:
> On Thu, Feb 13, 2014 at 2:37 PM, Michael Zawoysky <lists / ruby-forum.com>
> wrote:
>
>> if browser.text.include? ("Michael's group with other participants'.")
>
>> When it see's the first apostrophe it fails.
>
> 1.9.3 (main):0 > "some string".include?("Michael's group with other
> participants'.")
> => false
> 1.9.3 (main):0 >
>
> Seems fine to me. Perhaps you could provide a reproducible test
> case, as well as your definition of what "fails" means?

This is the script with error message:
require 'watir'


browser = Watir::Browser.new
browser.maximize


begin
   browser.goto - I display my web page
   if browser.text.include? ("Michael's")
      puts "pass"
   else
      puts "fail"
   end
end
Error:
splash.rb:18: invalid multibyte char (US-ASCII)
splash.rb:18: syntax error, unexpected $end, expecting ')'
...f browser.text.include? ("Michael^a?Ts ...

-- 
Posted via http://www.ruby-forum.com/.