activities
latest
false
UiPath logo, featuring letters U and I in white

UI Automation activities

Last updated Mar 13, 2026

GetUrl

Retrieves the URL from the current web page.

This API must be added after Open or Attach.

Definition

Namespace: UiPath.UIAutomationNext.API.Models

Assembly: UiPath.UIAutomationNext.API.Models (in UiPath.UIAutomationNext.API.Models dll)

Overloads

OverloadDescription
GetUrl(GetUrlOptions)Retrieves the URL from the current web page, along with other options.

GetUrl(GetUrlOptions, getUrlOptions)

Retrieves the URL from the current web page, along with other options.

GetUrl(
  GetUrlOptions,
  getUrlOptions)
GetUrl(
  GetUrlOptions,
  getUrlOptions)

getUrlOptions GetUrlOptions : Additional options to customize the URL extraction process. You can choose to customize:

* `TargetOptions`:
  + `Timeout` - Specifies the amount of time (in seconds) to wait
    for the API to run before the `SelectorNotFoundException` error
    is thrown. The default value is 30 seconds.
  + `DelayAfter` - Delay time (in seconds) after executing the API.
    The default amount of time is 0.3 seconds (300 milliseconds).
  + `DelayBefore` - Delay time (in seconds) before the API begins
    performing any operations. The default amount of time is 0.2 seconds (200
    milliseconds).
* `TargetOptions`:
  + `Timeout` - Specifies the amount of time (in seconds) to wait
    for the API to run before the `SelectorNotFoundException` error
    is thrown. The default value is 30 seconds.
  + `DelayAfter` - Delay time (in seconds) after executing the API.
    The default amount of time is 0.3 seconds (300 milliseconds).
  + `DelayBefore` - Delay time (in seconds) before the API begins
    performing any operations. The default amount of time is 0.2 seconds (200
    milliseconds).

Return value

The text from the specified URL.

  • Definition
  • Overloads
  • GetUrl(GetUrlOptions, getUrlOptions)
  • Return value

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated