title: Wait for clickable element to become visible--Chromedriver
body: <p>below is a part of my code: It is designed to click on a button after it is visible.
  This takes a different amount of time so i just implemented a wait for 10 seconds.</p>
  
  <p>Is there a way i can make this more dynamic so the click is done right after it is visible?</p>
  
  <p>Thanks in advance! </p>
  
  <p>Kind regards</p>
  
  <pre><code>#go to the uploadtab
  ---------------------
  $searchBtnIris = $driver.FindElementByXPath('//*[@id="menuFormHome:j_id44_body"]/ul[3]/li[4]/a')
  Write-Host "Den ID van de zoekknop is $seachBtnIris"
  $searchBtnIris.Click();
  
  Start-Sleep -s 10
  
  #click add button and select file to upload
  -------------------------------------------
  $searchBtnIris = $driver.FindElementByXPath('//*[@id="uploadFormPanel:upload:flashContainer"]')
  Write-Host "Den ID van de zoekknop is $seachBtnIris"
  $searchBtnIris.Click();
  </code></pre>