Posts

Features and Future of Selenium Webdriver

Image
Features of Selenium Webdriver: 1. Opensource/Freeware : Selenium is free of cost. It means you do not have to buy any license like other softwares or do not have to pay to anyone for using Selenium for automation testing. 2. Web Functional Framework : Selenium can only be used for automation testing of web applications/website. It is a functional testing tool so we can only automate functional test cases. 3. Multi-Language Support : It is one of the major benefits of Webdriver. Selenium Webdriver supports many languages like Java, Python, PHP, C#, Ruby, Perl etc. So, it provides the flexibility to automation test engineers to automate test cases using any one language that they are comfortable. 4. Cross OS Support : Selenium supports multiple OS like, Windows, Linux, Unix, Mac. So if you have written webdriver automation code using windows platform, then same automation code could be used on other OS platforms like Unix, Linux, Mac. 5. Cross-Browser Compatibility Test

Java Modifiers

  Mo difiers are Java keywords that are used to declare features in applications. They affect either the lifetime or the accessibility of a feature. A feature may be a class, a method, or a variable. Modifiers that affect the visibility of a feature are called access modifiers or visibility modifiers. The remaining modifiers do not fall into any clear categorization and may be called storage and lifetime modifiers. Java modifiers are of two types : Access Modifier   Non-Access Modifier Access Control Modifiers Java provides a number of access modifiers to set access levels for classes, variables, methods and constructors.  The four access levels are: Default Public Private Protected Default:  Visible to the package only . No modifiers are needed.  In sample code below, you can see that no access modifier is used with 'class' keyword which makes it default. Now this class is only visible/accessible to the other classes which are present in the same package along with th

Java Operators

Java Operators are symbols that perform operations on variables and values. Java provides many types of operators which can be used according to our usage. They are classified into following types: Arithmetic Operators Assignment Operators Relational Operators Logical Operators Unary Operators Bitwise Operators  Arithmetic Operators Arithmetic operators are used to perform mathematic operations on variables and data. They operate on numeric values. In simple words they  can be used to perform the mathematical operations of addition, subtraction, multiplication, and division. Operator      Description +                Performs addition –              Performs subtraction *              Performs multiplication /              Performs division %              Returns the remainder of the division Sample Code: class Arithmetic { public static void main (String[] args) { // variables int a = 10 , b = 5 ; // Print sum using addition operator System. out .

How to become expert in Selenium Automation Testing?

Image
You can learn Selenium Webdriver yourself in just 1 month, yes you read it right! If you want my above statement to work for you, then you would have to come up with a proper study plan and follow it with discipline. Discipline is the key here. Good news is, I am going to help you to make that study plan and also will share very useful blog posts links for the same, later in this post. First important question is:  What all you need to learn to become expert in Selenium Webdriver? Answer is simple, by learning everything mentioned below: 1. First and foremost thing is Software Testing concepts:  You can find Software Testing tutorial series here -  Software Testing Tutorials Series 2. Coding concepts - You have to learn coding concepts/skills in any one of the language which Selenium support i.e., Java, Pyhton, Ruby, C#, PHP. Currently java is ahead in the race. Refer this link to learn Java for Selenium -  Java Tutorials Series 3. Fundamentals of HTML & CSS

What are OOPS Concepts in Java?

We used to hear OOPS very often whenever we come across JAVA language. In this post we are going to have a look at the OOPS concepts of the Java. Some of the object oriented languages are: C#, C++, PHP, Java, Python etc. Main concepts of OOPS are: Object Class Inheritance Polymorphism Abstraction Encapsulation 1. Object:  A Java object is a combination of data and procedures working on the available data. An object has a state and behavior. The state of an object is stored in fields (variables), while methods (functions) display the object's behavior. Objects are created from templates known as classes. In Java, an object is created using the keyword "new". Syntax of creating an object: MyClass obj = new MyClass(); In above example,  MyClass is class name,  ' obj ' is the object name (object name can be anything)  ' new ' is keyword of java which instantiates the object (or in simple language it creates the object '