How to handle frame, alert and dropdown in Java (Selenium: WebDriver)




About this tutorial:

Video duration: 00:59:14
To handle frames in Selenium, Following methods are used −

– switchTo().frame( frameNumber) : This method uses the frame id as the parameter. The index of frame id starts from 0. NoSuchFrameException is thrown if the frame is not found.

– switchTo().frame( frameName) : This method uses the frame name as defined by the developer as the parameter. The frame name is considered a String and is enclosed in quotes. NoSuchFrameException is thrown if the frame is not found.

– switchTo().frame( WebElement) : This method uses the webelement as the parameter.

* NoSuchFrameException is thrown…

Post Author: OfficeTutes.com

Apple lover, ICT and LEAN consultant, MS Office lecturer My other website with video tutorials - Tutorials, guides and news for iPhones and iPads