Selenium Page Source is Missing Elements
<p>I have a basic Selenium script that makes use of the chromedriver binary. I'm trying to display a page with recaptcha on it and then hang until the answer has been completed and then store that in a variable for future use. </p>

<p>The roadblock I'm hitting is that I am unable to find the recaptcha element.</p>

<pre><code>#!/bin/env python2.7
import os
from selenium import webdriver

driverBin=os.path.expanduser("~/Desktop/chromedriver")
driver=webdriver.Chrome(driverBin)
driver.implicitly_wait(5)
driver.get('http://patrickhlauke.github.io/recaptcha/')
</code></pre>

<p>Is there anything special needed to be able to see this element?</p>

<p>Also is there a way to grab the token after user solve without refreshing the page? </p>

<p>As it is now the input type of the recaptcha-token id is hidden. After solve a second recaptcha-token id is created. This is the value I wish to store in a variable. I was thinking of having a loop of checking length of found elements with that id. If greater than 1 parse. But I'm unsure whether the source updates per se. </p>

<p>UPDATE: </p>

<p>With more research it has to do with the nature of the element, particularly: with the tag: <code>&lt;input type="hidden"</code>. So I guess to rephrase my question, how does one extract the value of a hidden element.</p>