title: How to find element in frame in Selenium
body: <p>I used below code for finding the element in the frame but I got the error
  kindly explain by this framebyinedex, framebystring, framebywebelement:</p>
  
  <pre><code>import org.openqa.selenium.By;
  import org.openqa.selenium.WebDriver; 
  import org.openqa.selenium.firefox.FirefoxDriver;
  
  public class Framebyindex 
  {
      public static void main(String[] args) 
      {
          WebDriver f1=new FirefoxDriver();
          f1.get("http://spicareers.com/spicareers/");
          f1.switchTo().frame(1);
          f1.findElement(By.linkText(" .Net - Senior Developer ")).click();
      }
  }
  </code></pre>
  
  <p>The error is:</p>
  
  <blockquote>
    <p>Exception in thread "main" org.openqa.selenium.NoSuchElementException:     Unable to locate element:     {"method":"link text","selector":" .Net - Senior  Developer "}</p>
  </blockquote>