title: NoSuchElementException in Safaribrowser Mac
body: <p>This java class has been created with testng.
  driver.get(&quot;https://rediff.com&quot;);</p>
  <pre><code>                WebElement rediffsignin = driver.findElement(By.xpath(&quot;//*[@id=\&quot;signin_info\&quot;]/a[1]&quot;));
                  rediffsignin.click();
                   
              
                  
                  Thread.sleep(3000);
                  
                  WebElement username = driver.findElement(By.id(&quot;login1&quot;));
                  username.sendKeys(email);
                  
                  WebElement epassword = driver.findElement(By.id(&quot;password&quot;));
                  epassword.sendKeys(rpassword);
                  
                  WebElement signin = driver.findElement(By.cssSelector(&quot;input[type='submit']&quot;));
                  signin.click();
                  
                  driver.manage().timeouts().implicitlyWait(20,TimeUnit.SECONDS); 
                  //String currentHandle = driver. getWindowHandle();
                  
                  Thread.sleep(1000);
                  
                  Emaillinkinvoke et = PageFactory.initElements(driver,Emaillinkinvoke.class);
                  
                  Thread.sleep(3000);
                  
                  driver.switchTo().defaultContent();
  
                  
                  et.emaillink(emailsubject);
                  
                  try { 
                      Thread.sleep(2000);
                  }catch(Exception e) {
                      e.printStackTrace();
                  }
              
  Here comes the Emaillinkinvoke class:
  </code></pre>
  <p>public class Emaillinkinvoke {</p>
  <pre><code>private WebDriver driver;
  
  @FindBy(how= How.XPATH, xpath = &quot;//span[@class='rd_subject']&quot;)
  List&lt;WebElement&gt; emailThreads;
  
  
  
  
  public Emaillinkinvoke(WebDriver driver)
  {
      this.driver=driver;
  }
  </code></pre>
  <p>public void emaillink(String emailsubject) throws InterruptedException  {</p>
  <pre><code>    for(int i=0; i&lt;emailThreads.size();)
      {
          if(emailThreads.get(i).getText().contains(emailsubject)) {
              emailThreads.get(i).click();
              System.out.println(&quot;email Clicked&quot;);
              break;
          }
          break;
      }
      
      Thread.sleep(1000);
  WebElement verifylink = driver.findElement(By.partialLinkText(&quot;link&quot;));
  verifylink.click();
  
      
  }
  </code></pre>
  <p>The same code is passed in Windows os - chrome,firefox and Edge browsers.
  In Mac, same code is passed in MAC os - Chrome, firefox. However, in Safari, facing No such frame Exception while searching for the element 'rd_subject'in the email.</p>