Posts

Mastering User Interactions with the Actions Class in Selenium WebDriver

Image
1. Introduction Selenium WebDriver is a widely used framework for automating web browser interactions. In this tutorial, we will cover the initial setup required to start using Selenium WebDriver, creating instances of the Actions class, and performing various mouse actions using Selenium. Let's dive in! Table of Contents Introduction 1.1. What is Actions Class? 1.2. Benefits of Using Actions Class

What is Inheritance in Java?

Inheritance is an important feature of OOP(Object Oriented Programming). It is the mechanism in java by which one class is allow to inherit the features(fields and methods) of another class. Important terminology: Super Class:  The class whose features are inherited is known as super class(or a base class or a parent class). Sub Class:  The class that inherits the other class is known as sub class(or a derived class, extended class, or child class). The subclass can add its own fields and methods in addition to the superclass fields and methods. Reusability:  Inheritance supports the concept of “reusability”, i.e. when we want to create a new class and there is already a class that includes some of the code that we want, we can derive our new class from the existing class. By doing this, we are reusing the fields and methods of the existing class. Syntax of Inheritance: class  SubclassName  extends  SuperclassName   {       //methods and fields    }   The  ext

What is Encapsulation in Java?

Encapsulation is a mechanism of binding code and data together in a single unit. Let’s take an example of Capsule. Different powdered or liquid medicines are encapsulated inside a capsule. Likewise in encapsulation, all the methods and variables are wrapped together in a single class. However if we setup public getter and setter methods to update (for example  void setAge(int age) )and read (for example   int getAge() ) the private data fields then the outside class can access those private data fields via public methods. This way data can only be accessed by public methods thus making the private fields and their implementation hidden for outside classes. That’s why encapsulation is known as  data hiding.  Lets see an example to understand this concept better. Example of Encapsulation: /* Create a class Encapsulation.java */ public class Encapsulation { private String name ; private int age ; public int getAge () { return age ; } publ

What are Java Variables and Data Types?

Image
1. What is a Java Variable? A variable can be called a container that holds some value in a Java program.  The variable has assigned a data type that defines what type of value the variable can hold.  The variable has a name which locates in the memory.  If you want to use a variable in a program, there are two steps associated with it you have to perform: Variable Declaration Variable Initialization i. Variable Declaration

Top 11 Interview Blunders That Can Cost You the Job: Expert Tips to Avoid Them

Image
Job interviews are nerve-wracking, even for the most confident job seekers. After all, you want to impress the interviewer and secure the position. Unfortunately, many people make interview blunders that prevent them from getting hired. In this blog, we'll take a look at eleven interview blunders that are common among job seekers and explain why they can be so detrimental to your chances of landing a job. 1. Arriving late The first impression is the most important one, and arriving late to an interview is a surefire way to make a bad one. It suggests that you are unreliable, disorganized, or simply don't care enough about the job to make an effort to arrive on time. In some cases, arriving late might even result in your interview being canceled altogether. 2. Dressing inappropriately What you wear to an interview can have a significant impact on how you are perceived by the interviewer. Dressing too casually or too formally can give off the wrong impression. Always make sure

What is Robot Class in Selenium WebDriver?

Image
Selenium can't interact with Window dialogs on it's own. You all must know that Selenium can only handle browser windows and not OS windows. So, when we have to upload any file on a webpage and as soon as we click on the Browse or Upload button, a windows tab opens up from which we have to select the file. We cannot handle that windows tab directly with Selenium WebDriver. But we can use other libraries and integrate them with Selenium code to handle window based dialogs. Robot class is one of them. We can use Robot class to upload or download a file using selenium. What is Robot Class in Selenium WebDriver? Robot Class is used to perform Keyboard actions. It has direct support to perform actions like press and release key. Robot class has key codes for each key present on the keyboard. So, if we want to press any key, then we need to call that key code. In automation we make use of Robot class to handle Windows tabs by interacting with them via virtual keyboard. One i

Selenium 4 Is Released: What Every QA Must Know

Image
Back in August of 2018 the whole testing automation community had been struck by the big news: Simon Stewart, the founding member of Selenium, had officially confirmed the release date and some of the major updates for Selenium 4 at the Selenium Conference in Bangalore. The 4.0 version of the worlds beloved framework for web testing automation was meant to be released by Christmas 2018. Selenium 4 release date Now, those who were familiar with the story behind the Selenium 3.0 release, which was also supposed to happen by Christmas, probably already knew back then, the new version would most likely indeed be finished by Christmas, but probably not in 2018. Just like it’s happened with the previous version which was released three years later than promised at the time of the original announcement. And they would have been right! As of today (and we are updating the information about Selenium 4.0 release in February 2019) the release of the new version still