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

Using Selenium WebDriver to Test Carousel Rotation

There are several websites having carousel rotation, especially e-commerce websites, which allows quick and easy navigation of the listed items. The rotating item in the list must be tested to provide a hassle-free browsing experience to the users. An example of carousel with rotation has been shown below. WebDriver caters the need to test and Read more…

SHARE THIS

Understanding Selenium WebDriver API Commands (Part 4)

Alert Handling in Selenium Alert is a pop up that indicates some information or requests input from the user. When it’s displayed, the user can’t perform any action on the web page. Trying to interact with any element on the webpage while an alert is present will result in UnhandledAlertException: Modal dialog present. There are 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

Multiple Ways to Scroll a Page Using Selenium WebDriver

There are a number of ways to scroll a page using Selenium WebDriver in Java. Some of them are discussed below. If you want to scroll the page vertically to perform some action, you can do it using the following JavaScript.         ((JavascriptExecutor) driver).executeScript(“window.scrollTo(0, document.body.scrollHeight)”);             Where ‘JavascriptExecutor’ is an interface, which helps executing JavaScript Read more…

SHARE THIS

How to Select a Programming Language for Selenium Test Automation Suite?

Today, Selenium is seen as an extremely useful open source framework for software testing. Selenium comes with a default test domain language called Selenese; however, you can also use languages like Java, Ruby, C#, Python, etc. to script a test. To communicate with such languages, Selenium makes use of calling functions in the Selenium Client Read more…

SHARE THIS