Open the page in browser and see HTML code for the page using Firebug, Developer Tools etc. If HTML has tag iframe
, that means your page has iframe and hence you'll have to use driver.switchTo.frame(frame);
to interact with elements within the frame.
If you want to check with Java code, do following:
driver.getPageSource().contains("iframe"); //this will return true if there is iframe