title: How to Handle the multiple DropDowns in selenium(Country/State/City) --Selenium WebDriver Data Driven Frame Work
body: <p>I have written a selenium data driven code, which will fetch data from the excel file and will ,fill up in the web page.
  the Webpage contains </p>
  
  <ol>
  <li>drop downs for Country ,State and City, </li>
  <li>Text Field 1 and Text Field 2</li>
  <li>Add/update Button  and Clear Button</li>
  </ol>
  
  <h2>Steps</h2>
  
  <p>1-select country,state,city ,enter text field 1 and Add/Update button.</p>
  
  <h2>Issue</h2>
  
  <p>When I perform above action, when Add/update is clicked ,I want page to wait until again starting the loop ,so that the country drop downs resets again.
  as of now it is not waiting and causing even a new country is selected the state drop-down shows previously selected country's provinces.Example(If I select India and provinces for the 1st record, than next time for United states the "State-drop down" displays ,Indian States but not the United States"</p>
  
  <p>I tried using wait until technique even the <code>driver.manage().timeouts().implicitlyWait(20, TimeUnit.MILLISECONDS)</code>, even <code>thread.currentthread.sleep</code>
  but none of them are consistent as after some records I am getting error as element not found because of the above mentioned issue.</p>
  
  <p>I want post Add/update button is clicked the driver to wait till it again resets the page with default value of the country set Secondly when I pass a value for the country the driver again to wait so that it can load it corresponding States .</p>