load
abstract suspend fun load(path: Path = Path(DEFAULT_SESSION_FILE), pattern: <Error class: unknown class> = Regex(".*")): List<<Error class: unknown class>>
Restores cookies previously written by save and hands them to the browser.
Return
The cookies that were restored.
Parameters
path
Where to read from. Defaults to DEFAULT_SESSION_FILE in the working directory.
pattern
Only cookies whose serialized form matches are loaded. Defaults to all of them.
Throws
IllegalStateException
if the browser has not been started yet.