Posts

What is Java Class and Object?

Image
Classes and Objects are the fundamental building blocks of OOPS (Object Oriented Programming). A java object is a physical and logical entity where as java class is logical entity.  In this tutorial, we will learn about Java Classes, Objects in Java and Java Constructors. Table of Content 1. What is a Java Class? Create your first Java program "Hello World" Explanation of Java keywords used in "Hello World" program 2. What is a Java Object? How to create Java Object? What is the use of Java Objects? 3. What is Java Constructor? Non-Parameterized Constructor (Default) Parameterized Constructor 1. What is a Java Class? Before creating an object in Java, you need to define a class. A class is a blueprint from which object is created.  We can think of class as a sketch (prototype) of a house. It contains all the details about the floors, doors, windows etc. Based on these descriptions we build the house. House is the object. Since, many houses can be made from

Top 25 Most Important Selenium Webdriver Commands with Java

Image
In this tutorial you will learn about basic Selenium Webdriver Commands which would be the backbone of your GUI automation scripts. We have divided the commands in to different categories so that you can grasp them without difficulty. Table of Content 1. Selenium Browser Commands 2. Get Commands 3. Navigation Commands 4. Web Element Commands 5. Select Dropdown Commands 1. Selenium Browser Commands Browser commands are the starting point of your Selenium Webdriver script. These commands used to launch browser, maximize it, open URL to be tested and other navigation commands. i. Set Path of browser/driver executable: It is the starting point of the webdriver script.  You have to download the browser executable file for the browser and make sure it is compatible with the version of your browser. For example, for firefox you have to download geckodriver.exe and place in your project. Download geckodriver executable from this link -  https://github.com/mozilla/geckodriver/releases Si

Top 50+ Selenium Webdriver Interview Questions and Answers

Image
This blog helps you prepare for Selenium automation interview and brush up your selenium skills easily.  You can find Selenium interview questions and answers and also Selenium Java interview questions from Experienced to beginners on this post. Selenium interview questions are divided into different topics for sake of ease. Table of Contents 1. Selenium Webdriver Commands Interview Questions 2. Actions Class Interview Questions 3. Selenium Locators Interview Questions 4. Windows and Frame Handling Interview Questions 5. TestNG Interview Questions 6. Advanced Selenium Interview Questions 7. OOPS, Selenium Automation Framework and Project related Interview Questions 1. Selenium Webdriver Commands Interview Questions Q1 - What is the syntax to launch browser in Selenium Webdriver? We can launch browser by creating an object of WebDriver interface and initialize it with some browser class like., ChromeDriver(), FirefoxDriver() etc. Please see the syntax for different browsers, //

Sponsored Products