title: Selenium can't find element until element is inspected
body: <p>I ran into a similar problem described here:
  <a href="https://stackoverflow.com/questions/52948943/selenium-cant-find-visible-element-until-html-is-inspected">Selenium - can&#39;t find visible element until HTML is inspected?</a>
  But the solution indicated there did not help me.</p>
  
  <p>There's a website that has the following dropbox (I can see them when I inspect the page):
  <a href="https://i.stack.imgur.com/utVsK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/utVsK.png" alt="enter image description here"></a></p>
  
  <p>No error is raised when I attempt to switch to the desired frame, no elements are found with <code>id = UIFormControl-5</code>. </p>
  
  <p>So after inspecting the dropbox (<code>id = UIFormControl-5</code>) and doing no other change whatsoever, the elements are there, as if the mere act of looking at the source code of the webpage changed the outcome of the result. What could possibly be happening here?</p>
  
  <p>I'm using the java selenium code</p>
  
  <pre><code>            driver.switchTo().frame(driver.findElement(By.cssSelector("iframe.flex-grow-1")));
              wait.until(ExpectedConditions.presenceOfElementLocated(By.id("UIFormControl-5")));
              driver.findElement(By.id("UIFormControl-5")).click();
  </code></pre>