Thread is not selenium class. It is a static class in java. This class can provide sleep ( ) method to create waiting state in execution. This method will take time to wait in millisecond as long integer (synchronize ).

web driver class object can join with select class object to automate drop-down list ( combo box ) when those drop- down lists developed in < select> tag in Html.

Select S = new select ( obj. find element (By.name(” Country”)));

S.select by visible text (“INDIA”)

S.select by index (82) ; index for INDIA

S.select by value (92); value for INDIA

To get index of required item in dropdown list we need to count items by start with zero. To get value of an item in dropdown list , we need to apply firebug on that element to get source code which can show value of items.

In this article we have seen Examples of Scripts for Automation – Selenium Training . In the next article will see the Script for Gmail registration automation.