title: Safari browser is not identifying the button based on cssSelector or xpath
body: <p>My tests are Failing while running the in the Safari browser pointed to <code>Browserstack</code> cloud env.<br>
  Could anyone please advise on how to fix the problem here. When a button is clicked, system displays a Modal Overlay and the "Show results" button is displaying inside the <code>Modal overlay</code> </p>
  
  <p>I have tried the test with <code>xpath</code> and <code>By.cssSelector()</code> way to grab the button, but still not good.</p>
  
  <pre><code> WebElement showResultButton  = driverSafari.findElement(By.cssSelector("div.modal-content .app-modal-footer.modal-footer button"));
  String showBtnText = driverSafari.findElement(By.cssSelector("div.modal-content .app-modal-footer.modal-footer button")).getText();
  showResultButton.click();
  </code></pre>
  
  <p>// Also I have tried below to reach the button:</p>
  
  <pre><code> WebElement showResultButton  = driverSafari.findElement(By.cssSelector(".modal-content&gt;.app-modal-footer.modal-footer&gt;button"));
  </code></pre>
  
  <p>//The xpath way is also not working:</p>
  
  <pre><code> WebElement showresultButton = driverSafari.findElement(By.xpath("//button[text()='Show results']"));
  </code></pre>
  
  <p>org.openqa.selenium.NoSuchElementException: An element could not be located on the page using the given search parameters. (WARNING: The server did not provide any stacktrace information)
  Command duration or timeout: 0 milliseconds</p>
  
  <p>*** Element info: {Using=css selector, value=.modal-content>.app-modal-footer.modal-footer>button}</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-html lang-html prettyprint-override"><code>&lt;div class="modal-content"&gt;
   &lt;div class="app-modal-header modal-header"&gt;&lt;/div&gt;
   &lt;div class="app-modal-body modal-body"&gt;&lt;/div&gt;
   &lt;div class="app-modal-footer modal-footer"&gt;
   &lt;button type="button" class="primary-button  btn btn-primary btn-block"&gt;Show results&lt;/button&gt;
   &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>