Monthly Archives: May 2019

hashset and linkedhashset differences in java

Differences between HashSet and LinkedHashSet in Java:   S.No HashSet LinkedHashSet 1 HashSet doesn’t maintain insertion order. LinkedHashSet maintains insertion order. 2 Unordered. Order is unpredictable when we iterate through the elements. Ordered and gives predictable output. 3 If you don’t want to maintain insertion order and should have unique values then you can use… Read More »

How to take screenshot using Selenium WebDriver

Taking screenshot using selenium is simple and it helps us to debug the failure and to find out the root cause. By looking at screenshot, we can get to know the details why and at which step test has failed. TakesScreenShot interface is used to achieve this task and this TakesScreenShot capability is enabled by… Read More »

How to select a dropdown using selenium web driver

In this article, we are going to learn about how to select a drop down using selenium webdriver. In our selenium automation, we may come across situations like entering text, selecting radio buttons and check boxes etc. Like this way, selenium handles dropdowns in an easy manner. Points to remember: Using selenium web driver, we… Read More »