getWindowHandle() stores the reference of the currently active window. On the other hand, getWindowHandles() returns a list of all the opened windows associated with a particular driver instance. getWindowHandle() It basically returns an id(handle) pointing to the currently active window. The return type of this method is a String type. We can use this referenceRead More
Set
Windows Handling | Multiple windows handling using JavascriptExecutor.
Traversing through multiple windows using ‘JavascriptExecutor’ and selecting user-defined tab window with ‘Title Partial Text’. This process is called multiple windows handling. Some times we have to open multiple windows (tabs) as per the requirement and need to switch the control through various tabs to select user definedRead More
Using HashSet in Java. (Collection -5)
HashSet actually uses the HashMap to create a collection of objects. But it doesn’t have any key concepts like HashMap. It creates a list of items ignoring duplicate entries. Class: HashSet Interface: Set Package: java.util Features of HashSet Duplicates elements are not allowed in Sets. Only one ‘null’ value is allowed as it doesn’t support duplicate values. Indexing ofRead More
Collection Types and features in Java. (Collection-1)
The Collection is a root Interface which contains other Interfaces like List, Queue, Map and Set. These Interfaces further contains Classes or sub-interfaces. Facts about Collection All these Classes and Interfaces make a framework structure to create a list of objects(like String, Integer, etc). It also provides common methods/features to handle and manipulate these underRead More