How to select a value from a dropdown ?

We can select a value from a dropdown by using WebDriver’s Select class. Syntax: selectByValue: Select selectByValue = new Select(driver.findElement(By.id(“SelectID_One”))); selectByValue.selectByValue(“greenvalue”); selectByVisibleText: Select selectByVisibleText = new Select (driver.findElement(By.id(“SelectID_Two”))); selectByVisibleText.selectByVisibleText(“Lime”); selectByIndex: Select selectByIndex =...

How can we find if an element in displayed on the screen?

Web Application has got so much diversity. So testing a web application is a challenges that too by using an automation tool. Few element...

How to take screenshots in Selenium?

In this post we will learn how to take Screenshot in Selenium WebDriver. Taking screenshot during automated run is very important. It is useful in...

Difference between implicit wait and explicit wait in Selenium

An explicit wait will wait for a certain condition to occur before proceeding further in the code.There are some convenience methods provided that help...

concat() method of String class in Java

In Java, there are two ways to concatenate two strings. You can use the concat method or the plus “+” character. Sun developers are...

Console class in Java

In this article we will learn about Console class in Java. In JDK 1.5 a new class was introduced under IO package i.e. Console class...

Thread States / Thread Life Cycle in Java

In this post we will about Thread States in Java or in other terms Thread Life Cycle . Below are the various stages in a...

Throw Keyword in JAVA (User Defined Exception )

In this article we will discuss about "throw" keyword in Java. Usage of throw keyword is anti to exception handling that is we are...

How to write to a file or a plain text document?

How to write to a file or a plain text document? There are multiple ways to write data into text file or plain text file....

Serialization in Java

In this post we will learn about Serialization in Java. Serialization is a mechanism in Java wherein we write object state into file system. It...

Follow us on Facebook

Facebook Page Loading...