The Stream was first introduced in Java 8, and the API is used to process collections of objects. Basically, a stream is a sequence of objects that supports various methods which can be pipelined to produce the desired result.

Different Operations On Streams:

  1. Intermediate Operations: map, filter, sorted.
  2. Terminal Operations…

Today, I came to a problem where I need to use theArrayList and Map data in the Test method.

Note: Although, we are passing Object[][] but later on the @Test method argument, we are using ArrayList and Map.

Example: The main use case is passing multiple ArrayList and Map based…

TestNG @Factory annotation is used to specify a method as a factory for providing objects to be used by TestNG for test classes.

The method marked with @Factory annotation and must return Object[].

First, let’s understand the difference between @factory and @DataProvider annotation?

TestNG @Factory annotation is used to create instances of test classes dynamically. …


Allow download restrictions

Supported on:

  • Google Chrome (Linux, Mac, Windows) since version 61
  • Google Chrome OS (Google Chrome OS) since version 61


Setting the policy means users can’t bypass download security decisions.

Setting the policy to:

* Block dangerous downloads means all downloads are allowed, except for those that carry safety warnings.

* Block potentially…


Set download directory

Supported on:

  • Google Chrome (Linux, Mac, Windows) since version 11
  • Google Chrome OS (Google Chrome OS) since version 35


Setting the policy sets up the directory Chrome uses for downloading files. …

TestNG allows us to set a timeout period for a test to get execute completely.

Timeout can be configured at two levels:

  • Suite level — This will be applicable for all the tests present in the TestNG test suite.
  • Test level — This will be applicable for the test method…

Today someone on the Stack-overflow, asked me that he wanted to read the below Example Data using cell reference attribute.

The table in the sheet is maintained in column order.

For example, if the table is something like:

Then he wanted the script to run for:

In our day to day task we get into cases, where we need to verify the form validation message and had to verify the state of the element.

Let’s take an example to understand it better.

Check the below screenshot and let’s assume we want to get the validation error…

To scroll to a specific element in selenium, we use scrollIntoView method.

Lets’ understand the scrollIntoView method very quickly.


The Element interface's scrollIntoView() method scrolls the element's parent container such that the element on which scrollIntoView() is called is visible to the user


Now let’s take an example to understand it properly:

Let’s assume we want to…

What is Web Accessibility?

Web accessibility is the inclusive practice of ensuring there are no barriers that prevent interaction with, or access to, websites on the World Wide Web by people with physical disabilities, situational disabilities, and socio-economic restrictions on bandwidth and speed.

Accessibility aims to cater to people of…

Abhishek Dhoundiyal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store