I’m trying to write a user extension to verify a URL’s protocol (HTTP, HTTPS, FILE), but the am getting a protocol as undefined when calling assertLocationProtocol

 

Selenium.prototype.assertLocationProtocol = function(expectedProtocol) {

    this.assertMatches(expectedProtocol, this.page().location.protocol);

};

 

 

Is there a way to get the full URL, from the location (or other) object so I can match on the protocol?

_______________________________________________
Selenium-users mailing list
Selenium-users@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users

Reply via email to