Watir Webdriver redirects https to http

Hi…

This is one of the methods in Watir Webdriver

@browser.goto(url)

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

  @driver.navigate.to uri
  run_checkers

  url
end

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs