title: Not able to switch to the frame in the page of the timeofindia site
body: <pre><code>import java.util.concurrent.TimeUnit;
  
  import org.openqa.selenium.By;
  
  import org.openqa.selenium.WebDriver;
  
  import org.openqa.selenium.WebElement;
  
  import org.openqa.selenium.firefox.FirefoxDriver;
  
  public class TimeOfIndiaElements {
  
      public static void main(String[] args) {
  
          WebDriver driver=new FirefoxDriver();
          driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
          driver.get("http://timesofindia.indiatimes.com/");
          WebElement  element=driver.findElement(By.xpath("//form[@name='pollform']"));
          driver.switchTo().frame(element");
          String mathText=driver.findElement(By.xpath("//div[@id='pdiv']//span[@id='mathq2']")).getText();
          System.out.println(mathText);
      }
  
  }
  </code></pre>
  
  <p>I am not able to switch to the frame(containing 5+5) in the timesofindia site and getting <code>NoSuchElementException</code>. Kindly help me as am new to selenium. </p>