title: How do I check for text inside a <div>?
body: <p>I am trying to access some text that is located in a DIV.<br>
  I need to check to see if the page holds the text so I can return a true or false.<br>
  The code I am using is below:</p>
  
  <pre><code>cancel = browser.text.include?("Current Cancelled")
  if cancel == true
  puts "Line item cancelled"
  else
  puts "****Line item not cancelled****"
  end
  </code></pre>
  
  <p>But it returns false every time.<br>
  Here is a code snippet of what I am looking into:</p>
  
  <p><img src="https://i.stack.imgur.com/XDpLY.png" alt="enter image description here"></p>