Python Selenium Xpath from firebug not found
<p>I am trying to login to the ESPN website using selenium.  Here is my code thus far</p>

<pre><code>from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC

driver = webdriver.Firefox()
driver.maximize_window()

url = "http://www.espn.com/fantasy/"
driver.get(url)

login_button = driver.find_element_by_xpath("/html/body/div[6]/section/section/div/section[1]/div/div[1]/div[2]/a[2]")
login_button.click()

try:
    element = WebDriverWait(driver, 10).until(
        EC.presence_of_element_located((By.XPATH, "/html/body/div[2]/div/div/section/section/form/section/div[1]/div/label/span[2]/input")))
except:
    driver.quit()
</code></pre>

<p>Basically, there are 2 steps, first I have to click the login button and then I have to fill in the form.  Currently, I am clicking the login button and the form is popping up but then I can't find the form.  I have been using firebug to get the xpath as suggested in other SO questions.  I don't really know much about selenium so I am not sure where to look</p>

<p>Try to use</p>

<pre><code>driver.switch_to_frame('disneyid-iframe')
# handle authorization pop-up
driver.switch_to_default_content() # if required
</code></pre>

python selenium xpath