title: Selenium WebDriver C# - Unable to redirect to a secured (HTTPS) URL / driver.Url or driver.Navigate().GoToUrl does NOT work in HTTPS?
body: <p>Good day! I have been using Selenium WebDriver for a few months now, and everything works awesomely fine.</p>
  
  <p>However, I have been stuck with this strange problem for weeks (or maybe a month) already.</p>
  
  <p><strong>THE PROBLEM</strong>
  We have two environments for our website, one uses a security certificate (HTTPS) while the other does not have one (HTTP). When running my Selenium scripts (written in C#) in the HTTP site, the tests worked perfectly well and executed very smoothly.
  However, when I try to run the same test(s) on the HTTPS site, the tests seems to have problems in redirecting to my desired pages. Most particularly, the driver.Url does not redirect properly to the correct page.</p>
  
  <p><strong>THE SCRIPT/CODE:</strong>
  Basically, what our tests does are as follows:</p>
  
  <ol>
  <li>Go to Login page using driver.Url or driver.Navigate().GoToUrl.
  Works well for both HTTPS and HTTP. </li>
  <li>After successful login, there a
  page called "Select Database" which we trigger a button. Works well
  for both HTTP and HTTPS. </li>
  <li>After selecting a database, we will be
  redirected to a landing/home page. Works well for both HTTP and
  HTTPS. </li>
  <li>Once we already are in the landing/home page, we then fire a
  driver.Url or driver.Navigate().GoToUrl to redirect to a desired
  page. E.g. Contact page. When executing using the HTTP site, it
  worked perfectly and went to the Contact page. But when executing
  using the HTTPS environment, the page instead went to the Select
  Company page (the one in Step 2).</li>
  </ol>
  
  <p>I haven't been able to sleep for a few nights due to this problem. So any help guys is appreciated. :-)</p>
  
  <p>Thanks in advance. </p>