title: How can I log in to Yahoo FInance using Python Selenium?
body: <p>I've tried the following way, but every time I click on the "Next" button in the <a href="https://login.yahoo.com/config/login?.src=finance&amp;.intl=us&amp;.lang=en-US&amp;.done=https%3A%2F%2Ffinance.yahoo.com%2Fquotes%2Flogin%2Fview%2Fv1%2F" rel="nofollow noreferrer">login</a>, chromdriver would open a new tab and redirect me to <a href="https://subscriptions.yahoo.com/products/norton-security-online?ncid=dcm_268575827_461535665_127172993" rel="nofollow noreferrer">this page</a>. </p>
  
  <pre><code>from selenium import webdriver
  
  path = "https://login.yahoo.com/config/login?.src=finance&amp;.intl=us&amp;.lang=en-US&amp;.done=https%3A%2F%2Ffinance.yahoo.com%2Fquotes%2Flogin%2Fview%2Fv1%2F"
  option = webdriver.Chrome()
  option.add_argument("--incognito")
  option.add_argument("--disable-notifications")
  browser = webdriver.Chrome("/path/to/chromedriver", optiont=option)
  browser.get(path)
  browser.find_element_by_name("username").send_keys("username")
  
  # all three attempts below redirected me to the page mentioned above
  browser.find_element_by_name("signin").click()
  browser.find_element_by_class_name("button-container").click()
  browser.find_element_by_id("login-username-form").click()
  </code></pre>
  
  <p>I wonder this is some kind of secutiy they have considering the redirected page.</p>
  
  <p>I also tried sending password in the <code>hidden-input-container</code></p>
  
  <pre><code>browser.find_element_by_name("passwd").send_keys("password")
  </code></pre>
  
  <p>to get <code>selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable</code> error. I guess I need to press the Next button before sending the password. </p>
  
  <p>I'd much appreciate any help on this issue. </p>