Entity Manipulations

Static Variables

Static variables are set by the digger automatically in a specific context and are available in this and nested contexts. Currently, the following static variables are supported:

Variable name Context Description
url page Contains the URL of the current page.
lastUrl page Contains the URL of the last page loaded.

Since all available commands for working with static variables also work with the register, you can use them only in a block context:

              # SWITCHING TO THE BLOCK
- find:
    path: .somepath
    do:
    # READING `url` STATIC VARIABLE VALUE TO THE REGISTER
    - static_get: url
              

Next we will tell you how to work with hashes.