![]() The first frame(String id or Name) accepts a String parameter, but the second frame(WebElement element) accepts the Webelement as a parameter. You will use driver.switchTo().frame(String id or Name), frame(Webelement element, Did you notice both the names of the methods are the same but they accept different types of parameters. Selenium uses method overloading to accept different parameters, without disturbing the other methods. OverloadExample Obj = new OverloadExample()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |