Use of navigate() method in Selenium WebDriver

navigate() method in selenium is very frequently used method. Using selenium navigate to url method, driver can navigate back, forward, refresh browser and navigate to specific URL. navigate() is very simple method and we can use it verify quickly in our selenium webdriver tests. Lets see how we can use navigate() method in selenium webdriver. … Read more

Selenium switchTo() iFrames using index

We can use switchTo() method in selenium when you want to switch between multiple browser windows or multiple frames on page. Earlier we had seen how to switch between two windows using getWindowHandles() and switchTo() methods. You need switch to iframe in selenium when you have take action inside iframe on page. There are many different … Read more

Using getwindowhandle() and getWindowHandles() methods in Selenium WebDriver

getwindowhandle() and getWindowHandles() in selenium are methods to get window handles in selenium. getwindowhandle() is useful to get handle of current selected window in selenium while getWindowHandles() will return handles of all open windows or tabs. Both these methods getwindowhandle() and getWindowHandles() in selenium are useful when you are working with multiple windows and you need … Read more

Difference between close() and quit() in selenium WebDriver

Many new learners are initially confused about when to use close() and when to use quit() method for selenium close browser. Selenium close() method will close the current instance of the webdriver object reference. In simple word, Selenium close will close current window or tab on which your test is currently running. Selenium driver quit() methods will … Read more