How to get the number of frames on a webpage using WebDriver?
Hi Brett,
You can get the number of frames on a webpage using webDriver with this code snippet:
List <WebElement> framesList = driver.findElements(By.xpath("//iframe"));
int numOfFrames = frameList.size();