1 . get(java.lang.String url)
We need to pass the url as parameter in the get methods, then it will load the new web page in the current browser.
2 . close()
After loading the browser in a webpage, then we need to close the browser. For closing the browser we need to user close method
3 . getCurrentUrl()
This method will return the current Url of the browser
4 . getPageSource()
This method will return will return the page source of Web page contains hypertext markup language (HTML), which is made up of tags that tell your Web browser how to display a given set of information.5 . getTitle()
This method will return the title of the web page.6 . getWindowHandle()
Will Discuss about this method in detail in coming posts.
7 . getWindowHandles()
Will discuss about this method in detail in coming posts. This method is mainly used in switching from one window to anther window8 . findElement(By by)
Will discuss about this method in my other posts. This method is mainly used in finding the elements in the web page and to perform some action9 . findElements(By by)
Will discuss about this method in my other posts. This method is mainly used to return some set of elements from the web page10. manage()
This method will return the "option" interface and it is mainly is used for managing stuff you would do in a browser menu.
This method is mainly used to maximizing the window and for time implicit time out.
11 . navigate()
This method mainly mains maintains the browser history. Using this method we can open the web page , navigate back , forward , refresh the web page.
Difference between get() and navigate() method
Get method will wait until the page is loaded. With navigate() method it can move backwards and forwards in your browser history.
12 . switchTo()
Will discuss about this method in other posts. This method is mainly used in switching to new window , switching to frame , switching to alert.
.png)

.png)
.png)
.png)
.png)
No comments:
Post a Comment