Converts any URL source to an absolute, properly encoded URL.Combines a relative URL with a base URL string. Use when you have an explicit base URL string to resolve relative paths against.Examples
Arguments
The relative or absolute URL to resolve.
Base URL string to resolve relative URLs against.
Converts any URL source to an absolute, properly encoded URL.Uses the current page’s URL as the base URL. Use when resolving URLs relative to the current page.Examples
Arguments
The relative or absolute URL to resolve.
Playwright Page object to extract base URL from. The current page URL will be used as the base URL.
Converts any URL source to an absolute, properly encoded URL.Extracts the href attribute from a Playwright Locator pointing to an anchor element. Use when extracting and resolving URLs from anchor (<a>) elements.Examples
Arguments
Playwright Locator pointing to an anchor element. The href attribute will be extracted and resolved relative to the current page.