Monday, 10 February 2014

Handling DropDown and Radio buttons

Handling Drop Down

In this topic we will come to know about 'findElements(By by)'  method. 'findElements(By by)' method return the list of elements in the webpage.

Difference between findElement and findElements
1 . FindElement will return a single element. Return type is WebElement
2 . FindElements will return list of web elements. Return type is list<WebElement>

Example : I will explain how click select the month 'Jan' from the Date of Birth drop down in the Facebook Registration page.


Radio Buttons

Normally in the Radio button set , the 'name' attribute will be equal. By using the 'Name' attribute we can handle the radio button

Example : I will explain how to click on Radio button in the Facebook Registration page



No comments:

Post a Comment