1. How to Print List of Even Numbers in Java?  package JavaPrograms_InterviewQuestions;  import java.util.Scanner;  public class PrintEvenNumbers { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(“Enter Limit:”); int value = sc.nextInt(); System.out.println(“Print Even numbers between 1 and ” + value); for (int j = 1; j <= value; j++) { // ..

How to verify single checkbox in a webpage using selenium? TestSteps Open the Firefox browser Navigate the AppUrl Identify Checkbox1 Select Checkbox1 Verify Checkbox1 Close the current Browser window Selenium Code : ——————– package seleniumProject; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver;   public class VerifyCheckbox { public static void main(String[] args) {   ..

What is a frame? Frame is just like as a container where few elements can be grouped. How to identify frame inside a webpage? There are different ways to identify frame inside a webpage Way 1: Open webpage in a browser. Right click on webelement in a webpage Way 2: Open webpage in a browser. ..

Steps to configure Selenium WebDriver with java to develop test scripts Pre-conditions: We need below files Step 1: Download and Install JDK 8 Follow below URL http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Select Accept License Agreement radio button Choose version to download: Windows 86 or x64 based on your OS (jdk-8-windows-i586.exe and jdk-8-windows-x64.exe) wait until complete download. copy downloaded file ..