title: .click function passes When step, but isn't actually clicking the element in the browser
body: <p>I'm currently trying to script some automation tests.</p>
  
  <p>I've hit a block with what should be a simple checkbox click...</p>
  
  <p>The issue is the test run passes the step, but in the browser the "click" hasn't actually occurred.</p>
  
  <p>POM</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>    optionClick(optionValue){
          const option = $('//input[@type="checkbox"]').$('..').$('label').$('//span[contains(text(), "'+optionValue+'")]');
          option.waitForDisplayed(2000);
          const optionSelect = $('//input[@type="checkbox"]').$('..').$('label').$('//span[contains(text(), "'+optionValue+'")]');
          optionSelect.click();
      }</code></pre>
  </div>
  </div>
  </p>
  
  <p>Feature is - And I select the 'Create' option</p>
  
  <p>the html element I'm trying to click is as follows:
  <a href="https://i.stack.imgur.com/2RZUq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2RZUq.png" alt="enter image description here"></a></p>