Posts

10 Best Demo Websites for Selenium Automation Testing Practice

Image
This tutorial will certainly help you if you are learning Selenium and want to enhance your automation skills by practicing automation code. This post is specially designed for those who want to learn or  learning Selenium Webdriver. In this post, I cherry picked links of some of the best websites to practice Selenium Automation. You'll find Urls of best selenium practice websites on this tutorial like., Automation Practice form, demo web table, dummy e-commerce website, website for handling alerts, dummy travel portal etc. You can also take a look at  Selenium Practice Assignments which would help you practice your automation skills on the the shared demo website links. 1.  AUTOMATION PRACTICE FORM Level - Beginner About - This form contains all the important form elements which we come across daily like text box, radio button, check box, select drop downs, multi-select box, button, links, File Upload, Download link. Selenium Commands - To automate this practice form

What are Variables in Java?

Image
In this post you will learn about Java variables. What is a Java Variable? A variable can be called as a container which holds some value in a java program.  Variable has assigned a data type which defines what type of value variable can hold. Variable has a name which locates to the memory. If you want to use variable in a program, there are two steps associated with it you have to perform: Variable Declaration Variable Initialization i. Variable Declaration While declaring a variable you have to assign data type with variable name. Variable name has to be unique. Example: String employee; ii. Variable Initialization It means assigning a value to the declared variable. Example: employee = "John" Above two steps (declaration and initialization) can also be joined together in one single step. Example: String employee = "John"; Let's explain above example,  ' String ' is data type ' empl

Automate an e-Commerce website with Selenium Webdriver

Image
In this post you will learn to automate different functionalities of e-commerce website. This assignment is rated as 'Pro' level. We will cover multiple test scenarios of e-commerce website in this assignment like., User Registration, Buy Product,  Search Product and other website filters using Selenium Webdriver.  Along with test assignments, url of the demo e-commerce website is also provided. You can use this demo e-com website for your automation practice. Table of Content 1. Automate User Registration of an e-Commerce Website 2. Automate 'Login' with Selenium of an e-Commerce Website 3. Automate Buy Product functionality of an e-Commerce Website 4. Automate Search Product functionality of an e-Commerce Website Assignment 1  - Automate 'User Registration' of an e-commerce website with Selenium This section is focused on covering all the scenarios for User Registrati

Test-aliens are here on Earth, Go slow developers!

Image
 Why should a company have a team for Software Testing and Quality Assurance? What is the need to test a software? Why shouldn't developers test their own work? When I started my career around two years back I encountered above listed queries. At that time I had no reply to these queries. But after dwelling around two years in IT sector I come along with some firm replies. All above listed questions are inter-belonging and the highlighted one was recently posted in a programmer's Q&A post, it inevitably raised my curious eyebrow. This can be a big debate. Diving straight to the point, the simple, unmistakable and well known answer is : “Developers are not very good testers.” But according to my understanding correct answer is, - “They don't want to see bugs in their code and only look for happy paths and and happy endings.” Believe me I was a developer in the past and then I moved to QA to avoid QA on my code, now I'm coding Automated Selenium Sc

Handle Multiple Browser Tabs with Selenium Webdriver

Image
In this tutorial, we will learn to handle multiple browser tabs within a single Selenium script. Selenium Webdriver does not provide any commands for this task. But we can make use of the existing Selenium commands in a smarter way to automate this scenario. Although this scenario is quite rare and you will not encounter it usually. How to use Actions Class in Selenium to Handle Multiple Browser Tabs Actions Class in Selenium is a special class which provides us very useful commands, which helps us to replicate Keyboard and Mouse events i.e., press/release any Key, move curson, drag and drop, right click, double click etc. You can learn about Actions Class in detail here .  In our scenario, we'll make use of Key control commands of Actions class to automate open and automate multiple browsers. Let's understand the whole code logic step by step. 1. Launch google.com with Selenium Webdriver This is the most common part, we'll launch google.com with Selenium Webdriver as