Skip to content

Make Selenium Easy

And Keep It That Way

  • Home
  • Share
  • Toggle search form

Month: February 2025

Selenium Interview Questions: Why Do Not We Switch Back To Driver After Handling An Alert

Hello Folks, Recently this question was asked in interview to a candidate: We switch back to main window or default content after switching to a new window or frame, but not in case of Alert even we are switching to it. When we switch to a new window or frame, actually we jump to another…

Read More “Selenium Interview Questions: Why Do Not We Switch Back To Driver After Handling An Alert” »

Uncategorized

Frequently Asked Java Program 27: Java Program to Find Occurrence of Any Char in a Given String Without Iterating

Find occurrence of given char  (Ignore case)  in given string without iterating through string. Input – Make Selenium Easy Char – ‘M’ Output- Occurrence of M is 2. Problem Solution: We need to solve this problem without iterating through string in search of character. Its simple. Logic step by step: FInd the initial length of given…

Read More “Frequently Asked Java Program 27: Java Program to Find Occurrence of Any Char in a Given String Without Iterating” »

Uncategorized

Postman Tutorial Part 41 – Dynamic Variables in Postman

We have seen three types of variables in Postman :- Global Variable Environment Variable Collection Variable In this post, we will see Dynamic Variables in Postman. As the name says, it generates random data for your API. It is more like Random library in programming language to generate random number , timestamp or alphanumeric or…

Read More “Postman Tutorial Part 41 – Dynamic Variables in Postman” »

Uncategorized

#3. OAuth 2.0 Flow – What Is An Access Token?

I have explained the Flow of OAuth 2.0 in the previous post. In Step C – Request Access Token, I mentioned that the client requests an access token from the Authorization server using the Authorization grant received in step B. We will learn more about Access Token in this post. Video tutorials help in better…

Read More “#3. OAuth 2.0 Flow – What Is An Access Token?” »

Uncategorized

Now You Can Minimize Browser in Selenium WebDriver

Till Selenium 3, we were only able to maximize the window. We were not able to minimize directly. There were ways to do like setPosition() but it was of no use if you can not maximize whenever you want. Selenium 4 gives you a brand new method named “minimize()” which can be used to minimize…

Read More “Now You Can Minimize Browser in Selenium WebDriver” »

Uncategorized

TestNG Tutorials 60: Dependency in TestNG – Creating Dependency Among Test Methods – DependsOnMethod

We are going to see another important concept or feature provided by TestNG. This feature is called as Dependency. Suppose, we need to post a status on Facebook. Let’s write a Test Case for it: Step 1: Launch browser. Step 2: Launch Facebook url. Step 3: Create an account on Facebook. Step 4: Post a…

Read More “TestNG Tutorials 60: Dependency in TestNG – Creating Dependency Among Test Methods – DependsOnMethod” »

Uncategorized

Data Structure For Testers

Introduction As a part of the Data structure for Testers series, in this post, we will learn to write a Java program to… Introduction As a part of the Data structure for Testers in this post, we will learn to print a LinkedList in reverse order… Introduction As a part of the Data structure for Testers in this post, we will learn to reverse…

Read More “Data Structure For Testers” »

Uncategorized

Introduction To Swagger API Documentation

Many APIs are developed to build a Web-based application. We must have proper API documentation. Many projects maintain it in the Postman tool, word, a web page, etc. Swagger is another tool for the same even more than just that. You can relate Swagger API doc with Javadoc. Swagger is a set of open-source tools built…

Read More “Introduction To Swagger API Documentation” »

Uncategorized

How To Upload A File In Selenium Webdriver

Hello Folks, In this post we will learn how can we upload a file using selenium webdriver. Sometimes we encounter scenarios where we need to upload a file to proceed further. A file upload web elements looks like as below: You need to click on “Choose File” button which opens up File explorer and you…

Read More “How To Upload A File In Selenium Webdriver” »

Uncategorized

TestNG Tutorials 58: DataProvider in TestNG – Running Test for Specific Set of Data Provided by DataProvider Method – Dataprovider With Indices

By default a Test method is executed for all data set returned by DataProvider. The reason behind this is that a DataProvider annotated method has an attribute called “indices” whose default value is set to “all”. You may need to run only specific set of data. Like if DataProvider providing you five set of data…

Read More “TestNG Tutorials 58: DataProvider in TestNG – Running Test for Specific Set of Data Provided by DataProvider Method – Dataprovider With Indices” »

Uncategorized

Posts pagination

Previous 1 … 21 22 23 … 31 Next

Copyright © 2026 Make Selenium Easy.

Powered by PressBook Masonry Dark