Hiya folks! Testing workflows involving multiple windows has become a part of life. And with Selenium WebDriver, smoothly switching between these open windows, has become a piece of cake. If you are like me, you are probably anxious to see how all this really works in our code. So, without further delay, let’s take a… Continue reading
Searched for ""
9x. WebDriver – Handling alerts/pop-up boxes
Hiya enthusiasts! Wondering why Alert interface exists in Selenium WebDriver? Well, my friend, look no further than this post for the information you seek. We are going to talk all about popup boxes which are basically of three kinds – Alert box, Confirm box and Prompt box. As always we have our Demo Site to illustrate… Continue reading
jdk vs jre vs jvm
In order to understand JDK vs JRE vs JVM. You need to first understand each and every term. So let’s start by defining JDK (Java Development Kit), JRE (Java Runtime Environment), and JVM (Java Virtual Machine).
Contact Us
Please write to us at below address. admin – at – javabeginnerstutorial dot com
9w. WebDriver – Looping through table elements
Welcome back, Warriors! We just saw how to check if a particular data is present in a table’s specific cell with and without using XPath. Time to loop through each element and visualize the power of Selenium WebDriver. Let us go back to our Demo Site and focus on “Books & Authors” table to understand this… Continue reading
Exception Handling – The try-with-resources statement
Generally finally block is used to close all the resources (viz., file, database connection, socket or anything that should be closed after its task is done) to prevent any leaks. Sample code: public class ResourceMgt { public static void main(String[] args) { BufferedReader br = null; try { br = new BufferedReader(new FileReader("C://test.txt")); System.out.println(br.readLine()); }… Continue reading
Exception Handling – try catch Java blocks
As developers, we deal with risky situations on a daily basis. Server goes down, or there isn’t enough space to allocate objects on the heap or file is not present in the given location and so on. So every time we decide to do a risky action, we have to inform the compiler that we… Continue reading
9v. WebDriver – Handling tables in two ways
Hiya champions! Welcome back to yet another post on handling web elements using Selenium WebDriver. You learn something new every day, talking of which here is what we will be learning today: handling tables with and without using XPath! Let us go back to our Demo Site for a good grasp of the concept. Tables are… Continue reading
9u. WebDriver – Selecting items in two ways (Dropdowns and multiple selections)
Hiya rockstars (guitar and music not included though)! In this post, we delve into dropdowns and how to select items in two ways. And yes, we also talk about multiple selections! All concepts will be explained along with examples from our Demo Site. Method 1: Using the same age old traditional way of locating elements… Continue reading
Spring boot flyway Example
Spring Boot example with Flyway for DB migration. DB migration can be done using flyway db under the hood by providing some configuration details and migration script.