title: Selecting Options one by one Using watir-webdriver-
body: <pre><code>b.select_list(:id, "MainContent_drpVehicleType").when_present.options.each do |option|
      option.select
  
      b.select_list(:id, "MainContent_drpMake").when_present.options.each do |option|
          option.select
  
          b.select_list(:id, "MainContent_drpModel").when_present.options.each do |option|
              option.select
  
              b.button(:id,"MainContent_imgbtnsearch").click
          end
      end
  end
  </code></pre>
  
  <p>I'm Having Three Dropdown Each Dropdown Depends on the Previous Values I have to select each option one by one and  then click Button . <strong>*</strong><em>While Doing like that getting following Error</em><strong>*  Element is no longer attached to the DOM (Selenium::WebDriver::Error::StaleElementReferenceError)</strong></p>
  
  <p><strong>Also Tried:</strong></p>
  
  <pre><code> b.driver.manage.timeouts.implicit_wait = 3
  </code></pre>