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:
map, filter, sorted.
Today, I came to a problem where I need to use the
Mapdata in the Test method.
Note: Although, we are passing
Object but later on the
@Test method argument, we are using
Example: The main use case is passing multiple
@Factoryannotation is used to specify a method as a factory for providing objects to be used by TestNG for test classes.
The method marked with
@Factoryannotation and must return
@Factory annotation is used to create instances of test classes dynamically. …
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…
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:
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
Lets’ understand the
scrollIntoView method very quickly.
scrollIntoView() method scrolls the element's parent container such that the element on which
scrollIntoView() is called is visible to the user
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…