from selenium import webdriver
# For keyboard keys
from selenium.webdriver.common.keys import Keys
import selenium.webdriver.support.ui as ui

# Headless display
# from pyvirtualdisplay import Display
# display = Display(visible=0, size=(800, 600))
# display.start()

# Setup
driver = webdriver.Firefox()
driver.get("http://www.pandora.com")
wait = ui.WebDriverWait(driver, 10)

# Find and login
signinLink = driver.find_element_by_xpath("//a[@class='signInLink underline']")
wait.until(lambda driver: driver.find_element_by_xpath("//a[@class='signInLink underline']").is_displayed())
#wait.until(lambda x: siginInLink.isDisplayed())
signinLink.click()


# Finding elements
# elem = driver.find_element_by_name("Password")
# elem.send_keys("tryingout")
# elem.send_keys(Keys.RETURN)

driver.close()
#display.stop()

4bcb2dc58a3414991b6c44e16261fea26e85ae25
<mask token>

<mask token>
driver.get('http://www.pandora.com')
<mask token>
wait.until(lambda driver: driver.find_element_by_xpath(
    "//a[@class='signInLink underline']").is_displayed())
signinLink.click()
driver.close()

<mask token>
driver = webdriver.Firefox()
driver.get('http://www.pandora.com')
wait = ui.WebDriverWait(driver, 10)
signinLink = driver.find_element_by_xpath("//a[@class='signInLink underline']")
wait.until(lambda driver: driver.find_element_by_xpath(
    "//a[@class='signInLink underline']").is_displayed())
signinLink.click()
driver.close()

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import selenium.webdriver.support.ui as ui
driver = webdriver.Firefox()
driver.get('http://www.pandora.com')
wait = ui.WebDriverWait(driver, 10)
signinLink = driver.find_element_by_xpath("//a[@class='signInLink underline']")
wait.until(lambda driver: driver.find_element_by_xpath(
    "//a[@class='signInLink underline']").is_displayed())
signinLink.click()
driver.close()

from selenium import webdriver
# For keyboard keys
from selenium.webdriver.common.keys import Keys
import selenium.webdriver.support.ui as ui

# Headless display
# from pyvirtualdisplay import Display
# display = Display(visible=0, size=(800, 600))
# display.start()

# Setup
driver = webdriver.Firefox()
driver.get("http://www.pandora.com")
wait = ui.WebDriverWait(driver, 10)

# Find and login
signinLink = driver.find_element_by_xpath("//a[@class='signInLink underline']")
wait.until(lambda driver: driver.find_element_by_xpath("//a[@class='signInLink underline']").is_displayed())
#wait.until(lambda x: siginInLink.isDisplayed())
signinLink.click()


# Finding elements
# elem = driver.find_element_by_name("Password")
# elem.send_keys("tryingout")
# elem.send_keys(Keys.RETURN)

driver.close()
#display.stop()
