title: Selenium webdriverwait to find element within element
body: <p>I am trying to click on a specific element that dynamically changes locations and therefore it changes <code>xpaths</code> and <code>css selectors</code> as well. </p>
  
  <p>Tried xpath.</p>
  
  <p><code>//*[@id="hld"]/div/div[X]/div[1]/h2/select</code> </p>
  
  <p><strong>Note:</strong> The X will range from 2 to 10 depending on various factors. </p>
  
  <p>There are no <code>class</code> names or <code>IDs</code> to use either. All I have to work with are the <code>tag</code> names. </p>
  
  <p>My current code is as follows. </p>
  
  <pre><code>h2 = driver.find_element_by_tag_name("h2")
  select = h2.find_element_by_tag_name("select")
  select.click()
  </code></pre>
  
  <p>Unfortunately the select tag will load some time after the h2 tag, and I am trying to do a webdriverwait to wait until the element is clickable/visible before running the above code. </p>
  
  <p>Sadly the proper syntax to single out the select element isn't clear to me. Below is the code to find the h2 tag, but I am trying to expand it out to focus in on the select tag.  </p>
  
  <pre><code>WebDriverWait(driver, 30).until(
  EC.visibility_of_element_located((By.TAG_NAME, "h2")))
  </code></pre>
  
  <p>Any help is greatly appreciated. </p>