![]() |
GPAL - Generally Positive Automation Library v1.0
GPAL The Fluent Automation LIbrary
|
Represents a URL with optional pre-navigation storage cleanup / inspection actions. Uses fluent builder pattern with fail-forward design (logs issues instead of throwing exceptions). Supports implicit conversion to/from string (with warning on first implicit use). More...
Public Member Functions | |
| IAllowGPALUrlStorageType | ForUrl (string url) |
| Changes (or sets) the target URL for this builder instance. | |
| IAllowGPALUrlStorageItemConfig | WithStorageType (WebsiteStorageType type) |
| Specify the storage type for this storage action. | |
| IAllowGPALUrlStorageItemConfig | WithStorageData (string data) |
| Specifies the data to set. | |
| IAllowGPALUrlStorageItemConfig | WithStorageKey (string key) |
| Specifies the key for the most recently added storage action. | |
| IAllowGPALUrlStorageItemConfig | WithStoragePath (string path) |
| Specifies the path restriction for the most recently added storage action (mainly for cookies). | |
| IAllowGPALUrlStorageItemConfig | WithStorageDomain (string domain) |
| Specifies the domain restriction for the most recently added storage action (mainly cookies). | |
| IAllowGPALUrlStorageItemConfig | WithStorageStoreName (string storeName) |
| Specifies the IndexedDB store name for the most recently added action. | |
| IAllowGPALUrlStorageItemConfig | WithUserDefined (string userDefined) |
| Specifies the data to set. | |
| IAllowGPALUrlStorageItemConfig | WithDeleteAcrossOrigins (bool trueOrFalse) |
| OttoMagic Only: For delete operations without a domain, limit to origin? true = delete across origins false = delete only in the current origin (default). | |
| List< StorageAction > | Add (StorageAction storageAction) |
| Adds a fully-configured StorageAction to the list. | |
| List< StorageAction > | Add (List< StorageAction > storageActions) |
| Adds multiple fully-configured StorageAction items. | |
| IGPALUrl | ToGPALObject () |
| Returns this instance typed as IGPALUrl. | |
Static Public Member Functions | |
| static implicit | operator string (GPALUrl url) |
| Implicitly converts GPALUrl to its string URL representation. | |
| static implicit | operator GPALUrl (string url) |
| Implicitly converts a string to a GPALUrl instance. Logs a one-time warning about equality limitations of implicit conversions. | |
Properties | |
| string | Url [get] |
| Gets the target URL string. | |
Represents a URL with optional pre-navigation storage cleanup / inspection actions. Uses fluent builder pattern with fail-forward design (logs issues instead of throwing exceptions). Supports implicit conversion to/from string (with warning on first implicit use).
The url says which storage a workflow touches. Each WithStorageType starts an action and the calls after it narrow that one action, so a url carries as many as it was given. What runs is decided later: the browser's RunGet, RunSet and RunDelete pick from the actions declared here and never reach past them.
Definition at line 52 of file GPALUrl.cs.
| List< StorageAction > GenerallyPositive.Browser.GPALUrl.Add | ( | List< StorageAction > | storageActions | ) |
Adds multiple fully-configured StorageAction items.
| storageActions | Actions to append. |
Implements GenerallyPositive.Browser.IGPALUrl.
Definition at line 254 of file GPALUrl.cs.
| List< StorageAction > GenerallyPositive.Browser.GPALUrl.Add | ( | StorageAction | storageAction | ) |
Adds a fully-configured StorageAction to the list.
| storageAction | The action to add. |
Implements GenerallyPositive.Browser.IGPALUrl.
Definition at line 243 of file GPALUrl.cs.
| IAllowGPALUrlStorageType GenerallyPositive.Browser.GPALUrl.ForUrl | ( | string | url | ) |
Changes (or sets) the target URL for this builder instance.
| url | The new URL. If null/empty/whitespace > defaults to "https://google.com". |
Implements GenerallyPositive.Browser.IAllowGPALUrlForUrl.
Definition at line 106 of file GPALUrl.cs.
|
static |
Implicitly converts a string to a GPALUrl instance. Logs a one-time warning about equality limitations of implicit conversions.
Prefer explicit construction GPAL.Url(str) when reusing the same URL object.
Definition at line 90 of file GPALUrl.cs.
|
static |
Implicitly converts GPALUrl to its string URL representation.
Definition at line 79 of file GPALUrl.cs.
| IGPALUrl GenerallyPositive.Browser.GPALUrl.ToGPALObject | ( | ) |
Returns this instance typed as IGPALUrl.
Implements GenerallyPositive.Browser.IAllowToGPALObject< TResult >.
Definition at line 264 of file GPALUrl.cs.
| IAllowGPALUrlStorageItemConfig GenerallyPositive.Browser.GPALUrl.WithDeleteAcrossOrigins | ( | bool | trueFalse | ) |
OttoMagic Only: For delete operations without a domain, limit to origin? true = delete across origins false = delete only in the current origin (default).
| trueFalse |
Implements GenerallyPositive.Browser.IAllowGPALUrlStorageItemConfig.
Definition at line 226 of file GPALUrl.cs.
| IAllowGPALUrlStorageItemConfig GenerallyPositive.Browser.GPALUrl.WithStorageData | ( | string | data | ) |
Specifies the data to set.
| data | data (context sensistieve). |
Implements GenerallyPositive.Browser.IAllowGPALUrlStorageData.
Definition at line 128 of file GPALUrl.cs.
| IAllowGPALUrlStorageItemConfig GenerallyPositive.Browser.GPALUrl.WithStorageDomain | ( | string | domain | ) |
Specifies the domain restriction for the most recently added storage action (mainly cookies).
| domain | Domain (e.g. ".example.com", "sub.example.com"). |
Implements GenerallyPositive.Browser.IAllowGPALUrlStorageItemConfig.
Definition at line 180 of file GPALUrl.cs.
| IAllowGPALUrlStorageItemConfig GenerallyPositive.Browser.GPALUrl.WithStorageKey | ( | string | key | ) |
Specifies the key for the most recently added storage action.
| key | The storage key (e.g. "sessionId", "theme"). |
Ignored if no previous action exists or key is empty.
Implements GenerallyPositive.Browser.IAllowGPALUrlStorageItemConfig.
Definition at line 146 of file GPALUrl.cs.
| IAllowGPALUrlStorageItemConfig GenerallyPositive.Browser.GPALUrl.WithStoragePath | ( | string | path | ) |
Specifies the path restriction for the most recently added storage action (mainly for cookies).
| path | Cookie path (e.g. "/account", "/"). |
Implements GenerallyPositive.Browser.IAllowGPALUrlStorageItemConfig.
Definition at line 163 of file GPALUrl.cs.
| IAllowGPALUrlStorageItemConfig GenerallyPositive.Browser.GPALUrl.WithStorageStoreName | ( | string | storeName | ) |
Specifies the IndexedDB store name for the most recently added action.
| storeName | Name of the object store. |
Implements GenerallyPositive.Browser.IAllowGPALUrlStorageItemConfig.
Definition at line 197 of file GPALUrl.cs.
| IAllowGPALUrlStorageItemConfig GenerallyPositive.Browser.GPALUrl.WithStorageType | ( | WebsiteStorageType | type | ) |
Specify the storage type for this storage action.
| type | Type of storage action (cookies, localStorage, etc.). |
Implements GenerallyPositive.Browser.IAllowGPALUrlStorageType.
Definition at line 117 of file GPALUrl.cs.
| IAllowGPALUrlStorageItemConfig GenerallyPositive.Browser.GPALUrl.WithUserDefined | ( | string | userDefined | ) |
Specifies the data to set.
| data | data (context sensistieve). |
Implements GenerallyPositive.Browser.IAllowGPALUrlStorageItemConfig.
Definition at line 214 of file GPALUrl.cs.
|
get |
Gets the target URL string.
Implements GenerallyPositive.Browser.IGPALUrl.
Definition at line 69 of file GPALUrl.cs.