How to Use WebDriver Javascript Executor to Navigate to a URL
Selenium WebDriver provides methods to navigate to a url; these are driver.get()
and driver.navigate().to()
.
Read more
Read moreWebDriver Implicit, Explicit and Fluent Wait Examples
What is the difference between implicit wait, explicit wait and fluent wait in WebDriver? More specifically, what is the relation between WebDriverWait and FluentWait?
Read more
Read moreSelenium CSS Selectors Examples
Locating elements by CSS selectors is the preferred way as it is faster and more readable than XPath.
Read more
Read moreSelenium Tutorial - Learn Browser Automation with Selenium WebDriver
Selenium is a set of libraries that is used to emulate a user’s interactions with a browser.
Read more
Read morePage Object Model Framework with Java and WebDriver
This tutorial is the second part of the Test Automation Framework development.
Read more
Read moreHow to Develop a Test Automation Framework From Scratch?
In this step-by-step guide, I will describe how to develop a modularized Test Automation Framework from scratch using Java, Selenium, TestNG and Maven.
Read more
Read moreSelenium Click Link By href Value
In Selenium WebDriver, there are a number of ways we can interact with web elements, such as by element’s ID, XPath, CSS, etc…
Read more
Read moreWebDriver Wait For Page to Load Examples
In this WebDriver tutorial, we take a look at how to wait for a page to complete loading before doing other actions. Two examples in Java on wait for page to load in WebDriver.
Read more
Read moreTop 10 Selenium WebDriver Books
Here is our list of Top 10 Selenium WebDriver Books that you can use to learn Selenium. The books are varied and are for beginners to advanced users with many useful examples.
Read more
Read moreHow To Run WebDriver in Headless Mode
How to run WebDriver in headless mode? This might be needed if your CI tool, for example, Jenkins doesn’t support UI.
Read more
Read moreHow To Pass Cookies From Selenium WebDriver To Rest-Assured
How to pass cookies from Selenium WebDriver to Rest-Assured? When you do automated testing at API and UI layer, there could be situations where you are doing both and that you need to pass properties from your API test to you UI test or vice versa.
Read more
Read moreSelenuim - Open New Browser Tab
Quite often you may want to open a new tab in the same browser window that is running your Selenium WebDriver tests. Instead of opening a new browser, you can simply use the code below to open a new tab in the same browser:
Read more
Read moreSelenium - Create, Update and Delete Cookies
Almost all websites use cookies in one form or another. Cookies are a way of remembering users and their interaction with the site by storing information in the cookie file as key-value pairs.
Read more
Read moreHow to Resize Browser Window in WebDriver
How to resize browser window with Selenium WebDriver? Here, we look at three different ways we can resize browser window in WebDriver.
Read more
Read moreSelenium - How to Restore Cookies in New Browser Window
Suppose we have to test for the following scenario:
Read more
Read moreHow to get Response Status Code with Selenium WebDriver
Quite often when you are running automated checks with Selenium WebDriver, you also want to check the response status code for a resource, such as a web service or other web pages on the site. You can also check for broken links on the site as you are executing Selenium WebDriver scripts.
Read more
Read moreWhy Selenium and Cucumber Should Not Be Used Together
In this post, I will explain why I believe it is a bad idea to write UI automated tests with Selenium and Cucumber.
Read more
Read more