Following are the possible ways for handling Frames
1.If Frame is having the element properties like name/value
1.If Frame is having the element properties like name/value
2.If Frame is having indexwebdriver.switchTo().frame("frame name/value");
3.If the Frame Properties or changing dynamically / if u want to perform using frame xpath / css pathwebdriver.switchTo().frame(index);
webdriver.switchTo().frame(webdriver.findElement(By.xpath(elementxpath));
Note: finally if you want to make operation out of the frame first you need get out of the frame following is the statement for thatwebdriver.switchTo().frame(webdriver.findElement(By.cssSelector(elementcsspath));
driver.switchTo().defaultContent();
Please do comment on any queries
Other Popular posts:
No comments:
Post a Comment
:)