Posts

What are Java Modifiers and Operators?

Image
1. 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 1.1. 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 1.1.1. Default Accessible  within the same package only . No modifiers are needed.

My 4-Week Journey to Mastering Selenium WebDriver

Image
You can learn Selenium WebDriver yourself in just 1 month, yes, you read it right! If you want the 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. Let me help you make that study plan, and will also share very useful blog post links for the same later in this post. Table of Content 1. My Story of becoming Selenium Professional 2. My Experiments with Selenium 3. Future of Selenium Automation Testing 4. Which language has a better career prospect with Selenium - Java or Python? 5. The 4 Weeks Plan to Learn Selenium WebDriver 6. What next after being Selenium expert? 1. My Story of Becoming a Selenium Automation Professional I started my career way back in 2011 as a Manual Software Tester. I had an interest in Java, but didn't have much practical knowledge of it. I started learning Java slowly. It took some time to get some good knowledge of Java. Then in 2012, I switched to my f...

What are OOPS Concepts in Java?

Image
Introduction Object-Oriented Programming (OOP) is a programming paradigm that is based on the concept of objects, which can contain data and code to manipulate that data. Java is a fully object-oriented programming language, and as such, it provides several key concepts that make up the foundation of OOP. In this tutorial, we will explore the main OOP concepts in Java, along with examples and code. It is based on the principles of: Encapsulation Inheritance Polymorphism Abstraction In OOPs, everything is treated as an object, which can have properties and methods that operate on those properties. Advantages of using OOPs: There are several advantages of using OOPs in programming: Modularity: OOPs allows breaking down the code into smaller, more manageable pieces known as objects. This makes the code more modular, easier to understand, and maintain.

A Guide to Automating Broken Link Detection with Selenium WebDriver

Image
Introduction to Broken Link Testing in Web Automation As an automation tester, one of your critical responsibilities involves validating all hyperlinks on a website. Broken links significantly degrade user experience and can harm a site's SEO performance. Manual verification of links is impractical for modern websites that may contain hundreds or thousands of links. This guide provides a complete solution for automating broken link detection using Selenium WebDriver with Java. Understanding Broken Links and HTTP Status Codes What Constitutes a Broken Link? A broken link refers to any URL that fails to return the expected content to users. These non-functional links typically return HTTP error status codes instead of the successful 200 OK response. Critical HTTP Status Codes for Link Validation Status Code Description Implications 200 OK Link is fully functional 301 Moved Permanently URL has been permanently redirected 302 Found (Temporary Redirect) URL temporarily points elsewhere ...