title: Can't Find Element Inside iframe
body: <p>I want to get the data-sitekey, but it is inside the iframe.</p>
  <p>I only can get the element in class=&quot;container&quot;, can't find the element insde of it.</p>
  <p>How can I get the data-sitekey?
  <a href="https://i.stack.imgur.com/PkhfX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PkhfX.png" alt="HTML" /></a></p>
  <pre><code>driver.get(url)
  driver.switch_to.frame(&quot;main-iframe&quot;)
  
  container= driver.find_element(By.CLASS_NAME, 'container')
  print(container)
  
  time.sleep(2)
  
  captcha = driver.find_element(By.CLASS_NAME, 'g-recaptcha')
  print(captcha)
  </code></pre>