Ques1- How to find how many iframes are present in one page?
Ans- List<WebElement> frames = driver.findElements(By.tagName("iframe"));
int numOfFrame = frames.size();
Ques2- How to handle double click on webdriver?
Ans- use Actions class.
Actions act = new Actions(driver);
act.moveToElement(webElement).doubleClick().perform();
Ans- List<WebElement> frames = driver.findElements(By.tagName("iframe"));
int numOfFrame = frames.size();
Ques2- How to handle double click on webdriver?
Ans- use Actions class.
Actions act = new Actions(driver);
act.moveToElement(webElement).doubleClick().perform();
No comments:
Post a Comment