In Selenium, waits are mechanisms that allow you to control the timing of interactions with web elements during test execution. Waits are used to synchronize the test script with the web application’s dynamic behaviour, such as element visibility, presence, or availability. Selenium provides three types of waits: Implicit Wait: The implicit wait is a global…
Tag: Java
Selenium stops supporting Java 8
Hey all so as many of you know Selenium will stop supporting Java 8 starting on September 30, 2023. This means that we’re very near to this actually taking place and you may be wondering how is this going to affect you. Well, this is really only going to affect one group of people, those…
Spring Security with JWT token
Today I will show you how to make your REST APIs secure and authenticate requests using Spring Security JWT (Json Web Token). Today, JWT is one of the most common methods for authenticating requests for Java WEB applications. And this is not casual. This type of protection and authentication has several advantages: convenience (you do…
How To Improve Your Assertions Using AssertJ
Overview: As you might already know,Fluent APIs make your code readable and easily maintainable. We already have seen few articles on designing Page Objects and Business Workflows in fluent style. In this article, Lets see how we could include fluent assert statements for your automated tests using AssertJ library. Take a look at the examples…
Java Adapter Pattern explanation
Let us return to the consideration of structural design patterns. This time we will look at a design pattern called Adapter (also called the Wrapper along with the Facade pattern). This article will talk about the following: Object adapter Class Adapter The difference between the adapter and the facade An example of using an adapter…
Type of constructors in java
In this post we will explain type of constructors in java and what is the difference between constructors and methods. What is a constructor Constructor is a block of code that initializes the newly created object. A constructor resembles an instance method in java but it’s not a method as it doesn’t have a return…
Reflection for hybrid testing framework with cucumber
After a couple of time I manage to create a Selenium hybrid testing framework base on java reflection functional. In this post I will explain the base principles of this framework and all pluses and minuses. Let’s begin in our journey. Based on my experience a good testing framework base on UI functional testing an…