Package: geb.url

## [Groovy] Class UrlFragment

- geb.url.UrlFragment

-     class UrlFragment
      extends Object

  A marker class wrapping around a `String` that can be used with Page.to for navigating to page urls that contain a fragment identifier.

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `static UrlFragment` | `of(String fragment)` A factory method that creates a url fragment using the passed argument as is.
    `` | `static UrlFragment` | `of(Map<?, ?> fragmentMap)` A factory method that creates a url fragment using form encoded representation of the `Map` passed as the argument.
    `` | `String` | `toString()`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Method Detail

    - #### static UrlFragment of(String fragment)

      A factory method that creates a url fragment using the passed argument as is.

      Parameters:
        `fragment` - fragment identifier value
      Returns:
        url fragment representing the string passed as the argument

    - #### static UrlFragment of(Map<?, ?> fragmentMap)

      A factory method that creates a url fragment using form encoded representation of the `Map` passed as the argument. This method is useful when dealing with single page applications that store state in the fragment identifier by form encoding it.

      Parameters:
        `fragmentMap` - a map that is to be transformed into a form encoded fragment
      Returns:
        url fragment representing the form encoded `Map` passed as the argument

    - #### String toString()