UiPath Documentation
activities
latest
false
重要 :
このコンテンツの一部は機械翻訳によって処理されており、完全な翻訳を保証するものではありません。 新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。

UI Automation アクティビティ

クリック

ボタンやリンクなど、指定した UI 要素をクリックします。任意のマウスボタン操作またはダブルクリック操作を使用するように構成できます。

この API は Open または Attach の後に追加する必要があります。

定義

名前空間: UiPath.UIAutomationNext.API.Models

アセンブリ: UiPath.UIAutomationNext.API.Models (in UiPath.UIAutomationNext.API.Models dll)

オーバー ロード

オーバーロード説明
Click(String, ClickOptions)オブジェクト リポジトリ内の文字列によって識別された UI 要素をクリックします。
Click(IElementDescriptor, ClickOptions)オブジェクト リポジトリの要素の記述子によって識別される UI 要素をクリックします。
Click(TargetAnchorableModel, ClickOptions)アプリケーション内の特定の UI 要素を表す、ターゲットのアンカー可能なモデルをクリックします。
Click(RuntimeTarget, ClickOptions)オブジェクト リポジトリの要素のランタイム インスタンスによって識別された UI 要素をクリックします。
Click(String, NClickType, NMouseButton)オブジェクト リポジトリ内の文字列で識別された UI 要素に対してクリック操作を実行し、クリックの種類とマウス ボタンを指定します。
Click(IElementDescriptor, NClickType, NMouseButton)オブジェクト リポジトリの要素の記述子によって識別された UI 要素を、クリックの種類とマウス ボタンを指定してクリックします。

Click(String, ClickOptions)

文字列表現で識別された UI 要素をクリックします。

Click(
    TargetAnchorableModel target, 
    ClickOptions clickOptions)
Click(
    TargetAnchorableModel target, 
    ClickOptions clickOptions)

target string : オブジェクト リポジトリでキャプチャされた、クリックする UI 要素を指定します。

clickOptions ClickOptions : クリック操作をカスタマイズするための追加のオプションです。

* `KeyModifiers NKeyModifiers`:
  + `None`
  + `Alt`
  + `Ctrl`
  + `Shift`
  + `Win`
* `ClickType NClickType`:
  + `Single`
  + `Double`
  + `Down`
  + `Up`

  For example, to perform a double click you just need to set
  the click type to
  `NClickType.Double`:

  `clientAccountsScreen.Click(Descriptors.ACME_System_3.ClientAccountsScreen.AccountRowTest,
  new ClickOptions(){ClickType =
  NClickType.Double}.WithVariable("account_number_system1",
  "407547"));`.
* `MouseButton NMouseButton`:
  + `Left`
  + `Right`
  + `Middle`
* `CursorMotionType
  CursorMotionType`:
  + `Instant` - The cursor jumps to the
    destination.
  + `Smooth` - The cursor moves in
    increments.
* `InteractionMode
  NInteractionMode`:
  + `HardwareEvents` - Simulates the click
    by using the hardware driver. This is the slowest API, it
    cannot work in the background, but it is compatible with all
    desktop apps.
  + `SameAsCard` - Use the same input mode
    as the Open or Attach APIs. This is the default
    selection.
  + `Simulate` - Simulates the click using
    accessibility APIs. Recommended in browser automation, Java
    apps, or SAP. More reliable than Hardware Events. Works even
    if the target application is not in focus. Please test if
    your target application UI element supports this.
  + `DebuggerApi` - Performs actions using
    debugger APIs. Works for Chromium elements only. Sends all
    text in one go. Works even if the target application is not
    in focus. For more details, check out this [page](https://docs.uipath.com/studio/standalone/2023.10/user-guide/chromium-api).
  + `WindowMessages` - Simulates using Win32
    messages. Recommended for desktop apps. Usually more
    reliable than Hardware Events. Sends all text in one go.
    Works even if the target application is not in focus. Before
    using this API, please test if your target application UI
    element supports this.
* `KeyModifiers NKeyModifiers`:
  + `None`
  + `Alt`
  + `Ctrl`
  + `Shift`
  + `Win`
* `ClickType NClickType`:
  + `Single`
  + `Double`
  + `Down`
  + `Up`

  For example, to perform a double click you just need to set
  the click type to
  `NClickType.Double`:

  `clientAccountsScreen.Click(Descriptors.ACME_System_3.ClientAccountsScreen.AccountRowTest,
  new ClickOptions(){ClickType =
  NClickType.Double}.WithVariable("account_number_system1",
  "407547"));`.
* `MouseButton NMouseButton`:
  + `Left`
  + `Right`
  + `Middle`
* `CursorMotionType
  CursorMotionType`:
  + `Instant` - The cursor jumps to the
    destination.
  + `Smooth` - The cursor moves in
    increments.
* `InteractionMode
  NInteractionMode`:
  + `HardwareEvents` - Simulates the click
    by using the hardware driver. This is the slowest API, it
    cannot work in the background, but it is compatible with all
    desktop apps.
  + `SameAsCard` - Use the same input mode
    as the Open or Attach APIs. This is the default
    selection.
  + `Simulate` - Simulates the click using
    accessibility APIs. Recommended in browser automation, Java
    apps, or SAP. More reliable than Hardware Events. Works even
    if the target application is not in focus. Please test if
    your target application UI element supports this.
  + `DebuggerApi` - Performs actions using
    debugger APIs. Works for Chromium elements only. Sends all
    text in one go. Works even if the target application is not
    in focus. For more details, check out this [page](https://docs.uipath.com/ja/studio/standalone/2023.10/user-guide/chromium-api).
  + `WindowMessages` - Simulates using Win32
    messages. Recommended for desktop apps. Usually more
    reliable than Hardware Events. Sends all text in one go.
    Works even if the target application is not in focus. Before
    using this API, please test if your target application UI
    element supports this.

Click(IElementDescriptor, ClickOptions)

オブジェクト リポジトリの要素の記述子によって識別される UI 要素をクリックします。

Click(
    IElementDescriptor elementDescriptor,
    ClickOptions clickOptions)
Click(
    IElementDescriptor elementDescriptor,
    ClickOptions clickOptions)

elementDescriptor IElementDescriptor : クリックする UI 要素です。オブジェクト リポジトリの要素の記述子によって識別されます。

clickOptions ClickOptions : クリック操作をカスタマイズするための追加のオプションです。

* `KeyModifiers NKeyModifiers`:
  + `None`
  + `Alt`
  + `Ctrl`
  + `Shift`
  + `Win`
* `ClickType
  NClickType`:
  + `Single`
  + `Double`
  + `Down`
  + `Up`

  For example, to perform a double click you just need to set
  the click type to
  `NClickType.Double`:

  `clientAccountsScreen.Click(Descriptors.ACME_System_3.ClientAccountsScreen.AccountRowTest,
  new ClickOptions(){ClickType =
  NClickType.Double}.WithVariable("account_number_system1",
  "407547"));`.
* `MouseButton NMouseButton`:
  + `Left`
  + `Right`
  + `Middle`
* `CursorMotionType
  CursorMotionType`:
  + `Instant` - The cursor jumps to the
    destination.
  + `Smooth` - The cursor moves in
    increments.
* `InteractionMode
  NInteractionMode`:
  + `HardwareEvents` - Simulates the click
    by using the hardware driver. This is the slowest API, it
    cannot work in the background, but it is compatible with all
    desktop apps.
  + `SameAsCard` - Use the same input mode
    as the Open or Attach APIs. This is the default
    selection.
  + `Simulate` - Simulates the click using
    accessibility APIs. Recommended in browser automation, Java
    apps, or SAP. More reliable than Hardware Events. Works even
    if the target application is not in focus. Please test if
    your target application UI element supports this.
  + `DebuggerApi` - Performs actions using
    debugger APIs. Works for Chromium elements only. Sends all
    text in one go. Works even if the target application is not
    in focus. For more details, check out this [page](https://docs.uipath.com/studio/standalone/2023.10/user-guide/chromium-api).
  + `WindowMessages` - Simulates using Win32
    messages. Recommended for desktop apps. Usually more
    reliable than Hardware Events. Sends all text in one go.
    Works even if the target application is not in focus. Before
    using this API, please test if your target application UI
    element supports this.
* `KeyModifiers NKeyModifiers`:
  + `None`
  + `Alt`
  + `Ctrl`
  + `Shift`
  + `Win`
* `ClickType
  NClickType`:
  + `Single`
  + `Double`
  + `Down`
  + `Up`

  For example, to perform a double click you just need to set
  the click type to
  `NClickType.Double`:

  `clientAccountsScreen.Click(Descriptors.ACME_System_3.ClientAccountsScreen.AccountRowTest,
  new ClickOptions(){ClickType =
  NClickType.Double}.WithVariable("account_number_system1",
  "407547"));`.
* `MouseButton NMouseButton`:
  + `Left`
  + `Right`
  + `Middle`
* `CursorMotionType
  CursorMotionType`:
  + `Instant` - The cursor jumps to the
    destination.
  + `Smooth` - The cursor moves in
    increments.
* `InteractionMode
  NInteractionMode`:
  + `HardwareEvents` - Simulates the click
    by using the hardware driver. This is the slowest API, it
    cannot work in the background, but it is compatible with all
    desktop apps.
  + `SameAsCard` - Use the same input mode
    as the Open or Attach APIs. This is the default
    selection.
  + `Simulate` - Simulates the click using
    accessibility APIs. Recommended in browser automation, Java
    apps, or SAP. More reliable than Hardware Events. Works even
    if the target application is not in focus. Please test if
    your target application UI element supports this.
  + `DebuggerApi` - Performs actions using
    debugger APIs. Works for Chromium elements only. Sends all
    text in one go. Works even if the target application is not
    in focus. For more details, check out this [page](https://docs.uipath.com/ja/studio/standalone/2023.10/user-guide/chromium-api).
  + `WindowMessages` - Simulates using Win32
    messages. Recommended for desktop apps. Usually more
    reliable than Hardware Events. Sends all text in one go.
    Works even if the target application is not in focus. Before
    using this API, please test if your target application UI
    element supports this.

Click(TargetAnchorableModel, ClickOptions)

アプリケーション内の特定の UI 要素を表す、ターゲットのアンカー可能なモデルをクリックします。

Click(
    TargetAnchorableModel target, 
    ClickOptions clickOptions)
Click(
    TargetAnchorableModel target, 
    ClickOptions clickOptions)

target TargetAnchorableModel : クリックする対象のアンカー可能なモデル (UI 要素) です。

clickOptions ClickOptions : クリック操作をカスタマイズするための追加のオプションです。

* `KeyModifiers NKeyModifiers`:
  + `None`
  + `Alt`
  + `Ctrl`
  + `Shift`
  + `Win`
* `ClickType NClickType`:
  + `Single`
  + `Double`
  + `Down`
  + `Up`

  For example, to perform a double click you just need to set
  the click type to
  `NClickType.Double`:

  `clientAccountsScreen.Click(Descriptors.ACME_System_3.ClientAccountsScreen.AccountRowTest,
  new ClickOptions(){ClickType =
  NClickType.Double}.WithVariable("account_number_system1",
  "407547"));`.
* `MouseButton NMouseButton`:
  + `Left`
  + `Right`
  + `Middle`
* `CursorMotionType CursorMotionType`:
  + `Instant` - The cursor jumps to the
    destination.
  + `Smooth` - The cursor moves in
    increments.
* `InteractionMode NInteractionMode`:
  + `HardwareEvents` - Simulates the click by
    using the hardware driver. This is the slowest API, it
    cannot work in the background, but it is compatible with all
    desktop apps.
  + `SameAsCard` - Use the same input mode as the
    Open or Attach APIs. This is the default selection.
  + `Simulate` - Simulates the click using
    accessibility APIs. Recommended in browser automation, Java
    apps, or SAP. More reliable than Hardware Events. Works even
    if the target application is not in focus. Please test if
    your target application UI element supports this.
  + `DebuggerApi` - Performs actions using
    debugger APIs. Works for Chromium elements only. Sends all
    text in one go. Works even if the target application is not
    in focus. For more details, check out this [page](https://docs.uipath.com/studio/standalone/2023.10/user-guide/chromium-api).
  + `WindowMessages` - Simulates using Win32
    messages. Recommended for desktop apps. Usually more
    reliable than Hardware Events. Sends all text in one go.
    Works even if the target application is not in focus. Before
    using this API, please test if your target application UI
    element supports this.
* `KeyModifiers NKeyModifiers`:
  + `None`
  + `Alt`
  + `Ctrl`
  + `Shift`
  + `Win`
* `ClickType NClickType`:
  + `Single`
  + `Double`
  + `Down`
  + `Up`

  For example, to perform a double click you just need to set
  the click type to
  `NClickType.Double`:

  `clientAccountsScreen.Click(Descriptors.ACME_System_3.ClientAccountsScreen.AccountRowTest,
  new ClickOptions(){ClickType =
  NClickType.Double}.WithVariable("account_number_system1",
  "407547"));`.
* `MouseButton NMouseButton`:
  + `Left`
  + `Right`
  + `Middle`
* `CursorMotionType CursorMotionType`:
  + `Instant` - The cursor jumps to the
    destination.
  + `Smooth` - The cursor moves in
    increments.
* `InteractionMode NInteractionMode`:
  + `HardwareEvents` - Simulates the click by
    using the hardware driver. This is the slowest API, it
    cannot work in the background, but it is compatible with all
    desktop apps.
  + `SameAsCard` - Use the same input mode as the
    Open or Attach APIs. This is the default selection.
  + `Simulate` - Simulates the click using
    accessibility APIs. Recommended in browser automation, Java
    apps, or SAP. More reliable than Hardware Events. Works even
    if the target application is not in focus. Please test if
    your target application UI element supports this.
  + `DebuggerApi` - Performs actions using
    debugger APIs. Works for Chromium elements only. Sends all
    text in one go. Works even if the target application is not
    in focus. For more details, check out this [page](https://docs.uipath.com/ja/studio/standalone/2023.10/user-guide/chromium-api).
  + `WindowMessages` - Simulates using Win32
    messages. Recommended for desktop apps. Usually more
    reliable than Hardware Events. Sends all text in one go.
    Works even if the target application is not in focus. Before
    using this API, please test if your target application UI
    element supports this.

Click(RuntimeTarget, ClickOptions)

オブジェクト リポジトリの要素のランタイム インスタンスによって識別された UI 要素をクリックします。

Click(
    RuntimeTarget target,
    ClickOptions clickOptions)
Click(
    RuntimeTarget target,
    ClickOptions clickOptions)

target RuntimeTarget : クリックする UI 要素です。オブジェクト リポジトリ要素のランタイム インスタンスによって識別されます。

clickOptions ClickOptions : クリック操作をカスタマイズするための追加のオプションです。

* `KeyModifiers NKeyModifiers`:
  + `None`
  + `Alt`
  + `Ctrl`
  + `Shift`
  + `Win`
* `ClickType
  NClickType`:
  + `Single`
  + `Double`
  + `Down`
  + `Up`

  For example, to perform a double click you just need to set
  the click type to
  `NClickType.Double`:

  `clientAccountsScreen.Click(Descriptors.ACME_System_3.ClientAccountsScreen.AccountRowTest,
  new ClickOptions(){ClickType =
  NClickType.Double}.WithVariable("account_number_system1",
  "407547"));`.
* `MouseButton NMouseButton`:
  + `Left`
  + `Right`
  + `Middle`
* `CursorMotionType
  CursorMotionType`:
  + `Instant` - The cursor jumps to the
    destination.
  + `Smooth` - The cursor moves in
    increments.
* `InteractionMode
  NInteractionMode`:
  + `HardwareEvents` - Simulates the click
    by using the hardware driver. This is the slowest API, it
    cannot work in the background, but it is compatible with all
    desktop apps.
  + `SameAsCard` - Use the same input mode
    as the Open or Attach APIs. This is the default
    selection.
  + `Simulate` - Simulates the click using
    accessibility APIs. Recommended in browser automation, Java
    apps, or SAP. More reliable than Hardware Events. Works even
    if the target application is not in focus. Please test if
    your target application UI element supports this.
  + `DebuggerApi` - Performs actions using
    debugger APIs. Works for Chromium elements only. Sends all
    text in one go. Works even if the target application is not
    in focus. For more details, check out this [page](https://docs.uipath.com/studio/standalone/2023.10/user-guide/chromium-api).
  + `WindowMessages` - Simulates using Win32
    messages. Recommended for desktop apps. Usually more
    reliable than Hardware Events. Sends all text in one go.
    Works even if the target application is not in focus. Before
    using this API, please test if your target application UI
    element supports this.
* `KeyModifiers NKeyModifiers`:
  + `None`
  + `Alt`
  + `Ctrl`
  + `Shift`
  + `Win`
* `ClickType
  NClickType`:
  + `Single`
  + `Double`
  + `Down`
  + `Up`

  For example, to perform a double click you just need to set
  the click type to
  `NClickType.Double`:

  `clientAccountsScreen.Click(Descriptors.ACME_System_3.ClientAccountsScreen.AccountRowTest,
  new ClickOptions(){ClickType =
  NClickType.Double}.WithVariable("account_number_system1",
  "407547"));`.
* `MouseButton NMouseButton`:
  + `Left`
  + `Right`
  + `Middle`
* `CursorMotionType
  CursorMotionType`:
  + `Instant` - The cursor jumps to the
    destination.
  + `Smooth` - The cursor moves in
    increments.
* `InteractionMode
  NInteractionMode`:
  + `HardwareEvents` - Simulates the click
    by using the hardware driver. This is the slowest API, it
    cannot work in the background, but it is compatible with all
    desktop apps.
  + `SameAsCard` - Use the same input mode
    as the Open or Attach APIs. This is the default
    selection.
  + `Simulate` - Simulates the click using
    accessibility APIs. Recommended in browser automation, Java
    apps, or SAP. More reliable than Hardware Events. Works even
    if the target application is not in focus. Please test if
    your target application UI element supports this.
  + `DebuggerApi` - Performs actions using
    debugger APIs. Works for Chromium elements only. Sends all
    text in one go. Works even if the target application is not
    in focus. For more details, check out this [page](https://docs.uipath.com/ja/studio/standalone/2023.10/user-guide/chromium-api).
  + `WindowMessages` - Simulates using Win32
    messages. Recommended for desktop apps. Usually more
    reliable than Hardware Events. Sends all text in one go.
    Works even if the target application is not in focus. Before
    using this API, please test if your target application UI
    element supports this.

Click(String, NClickType, NMouseButton)

文字列表現またはセレクターで識別される UI 要素に対してクリック操作を実行し、クリックの種類とマウス ボタンを指定します。

Click(
    string target, 
    NClickType clickType, 
    NMouseButton mouseButton)
Click(
    string target, 
    NClickType clickType, 
    NMouseButton mouseButton)

target string : オブジェクト リポジトリでキャプチャされた、クリックする UI 要素を指定します。

clickType NClickType : 実行するクリックの種類。 [Single (シングルクリック)]、[ Double (ダブルクリック)]、[ Down (押したままにする)]、 または [Up (指を離す)] のいずれかです。既定のオプションは [シングル] です。: たとえば、ダブルクリックを実行するには、クリックの種類を NClickType.Double(clientAccountsScreen.Click(Descriptors.ACME_System_3.ClientAccountsScreen.AccountRowTest, new ClickOptions(){ClickType = NClickType.Double}.WithVariable("account_number_system1", "407547"));) に設定する必要があります。

mouseButton NMouseButton : クリックするマウス ボタン。 [Left (左)]、[ Middle (中央)]、または [Right (右)] のいずれかです。既定のオプションは [左] です。

Click(IElementDescriptor, NClickType, NMouseButton)

オブジェクト リポジトリの要素の記述子によって識別された UI 要素を、クリックの種類とマウス ボタンを指定してクリックします。

Click(
    IElementDescriptor elementDescriptor,
    NClickType clickType, 
    NMouseButton mouseButton)
Click(
    IElementDescriptor elementDescriptor,
    NClickType clickType, 
    NMouseButton mouseButton)

elementDescriptor IElementDescriptor : クリックする UI 要素です。オブジェクト リポジトリの要素の記述子によって識別されます。

clickType NClickType : 実行するクリックの種類。 [Single (シングルクリック)]、[ Double (ダブルクリック)]、[ Down (押したままにする)]、 または [Up (指を離す)] のいずれかです。既定のオプションは [シングル] です。: たとえば、ダブルクリックを実行するには、クリックの種類を NClickType.Double(clientAccountsScreen.Click(Descriptors.ACME_System_3.ClientAccountsScreen.AccountRowTest, new ClickOptions(){ClickType = NClickType.Double}.WithVariable("account_number_system1", "407547"));) に設定する必要があります。

mouseButton NMouseButton : クリックするマウス ボタン。 [Left (左)]、[ Middle (中央)]、または [Right (右)] のいずれかです。既定のオプションは [左] です。

このページは役に立ちましたか?

接続

ヘルプ リソース サポート

学習する UiPath アカデミー

質問する UiPath フォーラム

最新情報を取得