Table of Contents

Class NamedUriExtensions

Namespace
CSF.Screenplay.Selenium
Assembly
CSF.Screenplay.Selenium.dll

Extension methods for NamedUri.

public static class NamedUriExtensions
Inheritance
NamedUriExtensions
Inherited Members

Methods

RebaseTo(NamedUri, string)

Gets a copy of the current named URI, except 'rebased' using the specified base URI.

public static NamedUri RebaseTo(this NamedUri namedUri, string baseUri)

Parameters

namedUri NamedUri

The named URI to rebase

baseUri string

A new base URI

Returns

NamedUri

A URI which might have been rebased onto the new base URI

Remarks

If the current Uri is Absolute then this method has not effect and the named URI which is returned is the unmodified current instance.

If the current Uri is not absolute, then the specified base URI is prepended to the current URI, serving as a base. The new URI is then returned from this method. Note that this method will never result in the current instance being mutated, at most it will only return a copy of the current instance, which has the newly-rebased URI.