Posts

Top 10 Automation Testing Tools for Web Testing

Image
In this swiftly changing world, technology and tools are changing rapidly. But still there are few tools which are in the market from so long and performing so well and are in my list. I am sharing my list  of top 10 automation testing tools with you. 1. SELENIUM WEBDRIVER Selenium automates browsers. That's it! What you do with that power is entirely up to you. Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) be automated as well. Features: Selenium is free of cost. Selenium only supports Web automation. Selenium requires coding skills. Selenium supports many languages like Java, Python, PHP, C#, Ruby, Perl etc. Selenium supports all platforms, Windows, Linux, Mac. Selenium supports almost every browser like Chrome, FF, Safari, Opera, IE and their versions. It gives the flexibility to integrate Java or Python modules, other automation ...

Java Date Format Validation with Regular Expressions: A Step-by-Step Guide

Image
1. Introduction Validating date formats is an essential aspect of many software applications. It ensures that the user inputs a date in the correct format, reducing the risk of errors and inconsistencies in data. Regular expressions are a powerful tool for validating date formats. In this tutorial, we will explore how to validate date formats using regular expressions in Java.

How to Take Screenshots with Selenium WebDriver

Image
While performing manual testing we often take screenshots of the broken pages or bugs to use them as evidence and they are very useful in convincing the developers. Similarly, in automation Selenium provides us the commands to capture screenshots of the webpages. In this tutorial, we will learn to take full screenshots and partial screenshots of the webpage which is currently under test. We can also write some code logic to capture screenshots on every failure screen. That's a bit advanced-level concept. But in this post, we'll learn to take screenshots whenever we want. We also have to do some file-handling operations while taking and saving screenshots with Selenium WebDriver. Table of Contents:

How to Automate Google Search with Selenium WebDriver

Image
In this post, you will learn to automate Google Search using Selenium Webdriver with Java. This is a real-time example of Explicit wait command. Google search is an Ajax call. We will handle this Ajax call using the Explicit wait command of Selenium Webdriver. We can also say that we'll automate the auto-suggestion feature of search in this post. 1. What is Ajax search? Ajax stands for Asynchronous JavaScript and XML. Ajax is a new technology for creating faster and more interactive web applications. What Ajax does is: Update a web page without reloading/refreshing it Read data from the server after the page is loaded When you write something into a Search Box say "app" and it shows you similar search options that are Ajax. And you can automate that auto-suggestion box with the help of Explicit command in Selenium WebDriver . Google search is the best example of Ajax. In the case of Google search, you simply type any keyword in the search bar and just below the s...

Implement Code Re-usability in Selenium Automation Framework

Image
In this post, you will learn kind of coding pattern which is very helpful in maintaining our automation code. This post is written insight to help beginners. We'll learn that instead of writing a linear script, we should create page (action) methods which in general contain actions which we are going to perform on our web software. Let's say, we have a login functionality in our software and we have to automate it. In that case we'll create a method named login and write the commands like, entering username, password and click login in that method. Now we can use that method wherever we need it in other test cases as well. Benefits of using action methods are: Code Re-usability Better maintainability of code Sample Program for Re-Usable Action Methods: package com . techlistic . tute ; import org.junit.Assert ; import org.junit.Test ; import org.openqa.selenium.By ; import org.openqa.selenium.WebDriver ; import org.openqa.selenium.WebElement ; import o...

Automate GoDaddy.com Features with Selenium WebDriver

Image
This post contains two assignments that helps you to learn Selenium browser commands. These are the simplest assignments. So, this assignment post is the best suited to start your automation tester journey. 1. Automate Browser Actions on GoDaddy.com If you are a beginner in automation testing and looking forward to writing your first Selenium code, then this post is the best destination for you. This assignment will teach you the basic commands of Selenium Webdriver to perform basic actions like., Launch the browser, maximize the browser window, validate the page title, and close the browser. In this post, you will find very basic step-by-step assignments which will upgrade your understanding of Selenium Webdriver and its commands. 1. Test Case - Open Godaddy.com and maximize the browser window. Steps to Automate:

The Ultimate Guide to Selenium Locators: Best Practices & Examples

Image
Introduction to Selenium Locators Selenium WebDriver is the most popular open-source tool for  automating web browsers , used by QA engineers and developers worldwide. With support for multiple programming languages (Java, Python, C#, Ruby), it enables  efficient web automation testing . One of the  most critical skills  in Selenium automation is  locating web elements accurately . This guide covers  all Selenium locators , their best use cases, and  pro tips  to enhance your test automation framework. Why Are Locators Important in Selenium? Locators help Selenium  identify and interact  with web elements like: Buttons 🖱️ Text fields 📝 Dropdowns 🔽 Checkboxes ☑️ Links 🔗 Using the  right locator strategy  improves: ✅  Test stability  (fewer broken scripts) ✅  Execution speed  (faster element finding) ✅  Maintainability  (easier script updates) 8 Types of Selenium Locators (With Examples) 1. ...