I wrote simple code to verify text appears in the result page or not.
This is my code. I wrote this code in separate file and saved with ruby
extension. It executed successfully. But, False condition only executes.
I’m beginner to watir, can any one please tell me why it is happening.
if b.text.include?“Programming Ruby”
puts “Test passed”
puts “Test Failed”