[Wtr-general] $ie.text.include? problem

imran forum-watir-users at openqa.org
Wed Jun 13 10:17:34 EDT 2007


Hi, *carabasu*

Please execute the code below, i have just removed form your code an extra *end*.
and added 

require 'watir' and replaced IE.new with Watir::IE.new because i didn't use include WATIR

Execute below code it will print one .. OK

require 'watir'
testSite = 'http://www.google.com'

$ie = Watir::IE.new
$ie.goto(testSite)

if $ie.text.include?("Programs") 
then puts "OK"
else puts "CRAP"
end
:)

*kind Regards*
M.Imran


More information about the Wtr-general mailing list