Watir Webdriver redirects https to http


This is one of the methods in Watir Webdriver


def goto(uri)
  uri = "http://#{uri}" unless uri =~ URI.regexp

  @driver.navigate.to uri


The url i m sending is “https://…”
But after the method is called it redirects to http url.
I want to test it remains on “https://”

Any suggesstions.

I can’t see the URI you posted. I’d suggest looking at the URI gem’s
regexp method. It might not be a valid URI.

Thanks Joel…

It was not valid URL…that was causing the problem…

Thank you.