Understanding Selenium WebDriver API Commands (Part 6)

Multiple Windows Handling in Selenium Sometimes we face this scenario when clicking a link redirects to a new page in a different browser window. Performing an action on multiple windows is achievable using window handles in Selenium WebDriver. WebDriver provides two methods to get the window handle: getWindowHandle() This method will return a string value Read more…

SHARE THIS

Understanding Selenium WebDriver API Commands (Part 3)

Operations using Select class in Selenium Selenium Select class can be found under org.openqa.selenium.support.ui.Select package. It will work for elements with only <select> tag. Some of the operations that can be performed using Select class are discussed below. Consider the image below with select drop-down having budget options: selectByVisibleText(String text) Using this function, you can Read more…

SHARE THIS

Understanding Selenium WebDriver API Commands (Part 1)

To give a head start to Selenium WebDriver, a basic understanding of WebDriver API commands and how it operates is required. Some of the basic commands are discussed below, which can help make your life easier. Creating a new driver instance  Firefox Driver We can create a new Firefox driver instance as shown below: WebDriver Read more…

SHARE THIS