title: Open another page after logging in using selenium webdriver
body: <p>I am using selenium webdriver to open a page in my website using python.</p>
  
  <p>The page link is : <code>"www.example.com/App/Details.aspx/I=5aM%+8KbCv1o=&amp;T=M30Lr7RtcdR=&amp;H=fRFKse5fKA=="</code></p>
  
  <p>Since I cannot open this page directly, I have to first login on 
  <strong>www.example.com</strong>, which I am doing this way:</p>
  
  <pre><code>from selenium.common.exceptions import TimeoutException
  from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  
  driver = webdriver.Firefox()
  try:
      driver.set_page_load_timeout(10)
      driver.get('http://www.example.com')   
  except Exception:
      print ('time out')
      #driver.find_element_by_id("Default").send_keys(Keys.CONTROL +'Escape')
  
  username = driver.find_element_by_id("usrid")
  password = driver.find_element_by_id("pswd")
  
  
  username.send_keys("Sample_user")
  password.send_keys("samplepass")
  
  driver.find_element_by_id("submitbtn").click()
  </code></pre>
  
  <p>After this I am am able to log in successfully,
  but when I redirect to the above link using</p>
  
  <pre><code>driver.get("www.example.com/App/Details.aspx/I=5aM%+8KbCv1o=&amp;T=M30Lr7RtcdR=&amp;H=fRFKse5fKA==") 
  </code></pre>
  
  <p>I get error saying please login first. Please suggest a solution for the same.</p>