We can get a list of frame names available on a page as below:
//Make sure you are in default frame
driver.switchTo().defaultContent();
List framesetList=driver.findElements(By.tagName("frame"));
if(framesetList.size()>0){
for(WebElement framename :framesetList){
System.out.println("Frame with name:" + framename.getAttribute("name")+" found.");
}
}
else {
System.out.println("No frame found");
}
붐 붐 붐 붐 붐붐잜 - Thauber Bet 메리트카지노 메리트카지노 10cric login 10cric login 555NetEnt Games Casino | Welcome Bonus and Free Spins
ReplyDelete