Selenium WebDriver Element is not visible error

Element is not visible error: This error occurs when the target element is hidden below some other element (something like a dialog box) or it is hidden by the CSS in the page. In this case we have two options: Remove or hide the other element so that the target element is visible and the … Continue reading Selenium WebDriver Element is not visible error

Advertisements

Selenium Page Interactions and Actions API

Interactions A Note Before Interactions Slow Network Connections are evil for Selenium Since right the after the statement to load the page the element is not displayed, because the page might not have been loaded fully depending upon the network connection speed. If this is the case then the best way to deal with this … Continue reading Selenium Page Interactions and Actions API

Simple Selenium Webdriver Example in Java

After Setting up the environment we can now go ahead and write some sample code. We will be using Java for this purpose. Take a look at the code example below and afterwards we will try to understand the working import org.junit.After; import org.junit.Before; import org.junit.Test; import java.util.regex.Pattern; import java.util.concurrent.TimeUnit; import static org.hamcrest.CoreMatchers.*; import org.openqa.selenium.*; import … Continue reading Simple Selenium Webdriver Example in Java

Setup Environment For Selenium

Goals/Requirements Before starting to setup things lets lets clearify our requirements for the setup and the course We want to be able to write Selenium scripts but not individual scripts, but with a more organized and robust structure We will be using Java as the main programming language for writing the scripts, so the latest jdk … Continue reading Setup Environment For Selenium

Selenium Components-Selenium IDE and Webdriver

Selenium Components Selenium has two components viz. Selenium WebDriver and Selenium IDE. Lets take a closer look at each of them. Selenium IDE It is available as a Firefox addon that one can use to simply record the scripts to run and/or export them for later run. The IDE can run/play the earlier recorded scripts. … Continue reading Selenium Components-Selenium IDE and Webdriver

Selenium Introduction

What is Selenium? Just like any other automation tools to automate some task or list of tasks, Selenium automates the web-browser for you. In very simple words: "it tries to act as a real user and interacts with web pages(or web-applications)". Few Scenarios For Testing Imagine a situation where a there has been few upgrades(changes) … Continue reading Selenium Introduction