Extract and store text content from elements for later use
Field Name | Type | Required | Description |
---|---|---|---|
Locator | string | Yes | CSS selector for the element to extract from |
Variable Name | string | Yes | Alphanumeric name to store the extracted value |
#order-confirmation .order-id
orderId
.user-profile .email-display
userEmail
[data-testid='api-token']
authToken
.share-link input
shareUrl
.receipt .transaction-number
transactionId
data-testid
attributes for better test reliability