I'm using following code for find the iframe in a web page
string win = diver.CurrentWindowHandle;
driver.switchTo().Window(win);
driver.switchTO().defautContent();
Then I tried with the following things but still I got the NO frame found error.
driver.switchTo().Frame(1); (or)
driver.switchTo().Frame(0);
driver.switchTo().Frame(driver.findelement(by.id(By.xpath("//xpath of d frame")))
driver.switchTo().Frame(driver.findelement(by.id(By.tagname(iframe)))
driver.switchTo().Frame(driver.findelement(by.id(By.className(classnamehere)))