Re: Go command and invalid URLs

Small correction here: ChromeDriver doesn't pass malformed URLs through the
omnibox. Passing an invalid URL to the Get command results in an error.
Relative URLs are also considered to be invalid. Browsing to about:blank
and chrome://settings does work, although javascript: URLs won't.

I don't think a full simulation of the omnibox/address bar belongs in
WebDriver, and implementing it might cause confusion and interop issues
(for certain inputs, some browsers would trigger a search while others
would perform a navigation). I'd be fine with adding a new error status
code for this, if others think it would be useful.

Sam.

On Mon, May 9, 2016 at 9:21 AM Andreas Tolfsen <ato@mozilla.com> wrote:

> On Mon, 9 May 2016, at 17:18, Dave Hunt wrote:
> > Would the proposal still allow us to load about: pages in Firefox? As far
> > as I can tell these aren’t valid URLs.
>
> I believe about:blank, about:preferences, et al. are considered “local
> scheme” URLs (https://url.spec.whatwg.org/#local-scheme), and thus
> valid.
>
>

Received on Monday, 9 May 2016 17:41:36 UTC