title: How to get the h1 tag from a website in WebDriverIO
body: <p>I am using WebDriverIO to do UI testing. I am trying to get this h1 tag:
  <a href="https://i.stack.imgur.com/sObLL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sObLL.png" alt="enter image description here" /></a></p>
  <p>This is my attempt:</p>
  <pre><code> it('should get the header of the intro text', () =&gt;{
          const h1 = $('#yui_3_17_2_1_1617935280900_2042');
          expect(h1).toHaveValue(&quot;Confidence AI Application: machine learning models provide a systemized approach to assess cash flow risk and opportunity.&quot;);
      });
  </code></pre>
  <p>The test fails:</p>
  <pre><code>[chrome 89.0.4389.114 linux #0-1] ✖ should get the header of the intro text
  [chrome 89.0.4389.114 linux #0-1]
  [chrome 89.0.4389.114 linux #0-1] 1 passing (14.2s)
  [chrome 89.0.4389.114 linux #0-1] 1 failing
  [chrome 89.0.4389.114 linux #0-1]
  [chrome 89.0.4389.114 linux #0-1] 1) should get the header of the intro text
  [chrome 89.0.4389.114 linux #0-1] Expect $(`yui_3_17_2_1_1617935280900_2042`) to have property value
  
  Expected: &quot;Confidence AI Application: machine learning models provide a systemized approach to assess cash flow risk and opportunity.&quot;
  Received: undefined
  [chrome 89.0.4389.114 linux #0-1] Error: Expect $(`yui_3_17_2_1_1617935280900_2042`) to have property value
  </code></pre>
  <p>How can I fix it?</p>