Auto Suggestion & Auto Complete Text Box – visibilityOfAllElementsLocatedBy Example

In this Example we will focus on Handling Auto Suggestion or
Auto Complete Textbox in Web Based Applications like Yahoo in Selenium WebDriver. This Example helps
to understand the usage of Synchronization – Explicit Wait in Real time Scenario’s.
Also usage of the method
in Selenium WebDriver.
Definition of Auto Complete
Autocomplete or Auto Suggestion allows the browser to predict the value. When a user starts to type in a field, the browser should display options to fill in the field, based on earlier typed values. The auto complete works
with the following input types: text, search, url,email and datepickers.


1. Open the browser
2. Enter the url
3. Type Selenium in the Search text box
4. It displays the options for Selenium
5. Select the text ‘Selenium Interview Questions’ from the display options.


Console Output

Eclipse Console Output

Eclipse Console Output

Search Results
Yahoo Search Results

Yahoo Search Results

Leave a Reply

Your email address will not be published. Required fields are marked *