UiPath Documentation
studiox
2024.10
true
重要 :
このコンテンツの一部は機械翻訳によって処理されており、完全な翻訳を保証するものではありません。 新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。
UiPath logo, featuring letters U and I in white

StudioX user guide

最終更新日時 2026年4月30日

最初のオートメーション プロジェクトを作成する

This tutorial teaches you how to create a basic task automation project in StudioX and run it on your machine. The automation processes an Excel file which contains a column with names and generates a unicorn name for each of the names using the unicorn name generator at https://www.rpasamples.com/unicornname. Each unicorn name is then extracted from the web page and added to another column in the spreadsheet next to its corresponding name.

はじめる前に

  • このページ下部のボタンから、このチュートリアルで使用したオートメーション プロジェクトを含むアーカイブをダウンロードします。アーカイブを展開し、ExcelFile.xlsx ファイルをデスクトップにコピーします。
  • This example uses Google Chrome, which requires the UiPath® extension for Chrome to be installed. To install it, go to Home (StudioX Backstage View) > Tools, and then, under UiPath Extensions, click Chrome. If you want to use Edge or Firefox instead, install the extension for that browser. No extension is required if you want to use Internet Explorer.
  1. 新しいプロジェクトを作成する

    1. StudioX の Backstage ビューで [スタート] タブを選択し、[新規][空のタスク] を選択します。

      ドキュメントの画像

      If you don't want to start from a blank project, select one of the available project templates instead. For more information, see Project Templates.

    2. 次の情報を入力します。

      • Name - Enter a name for the automation project. We recommend using a name that describes the automation you are going to create, as this will make it easier for you to identify this project among others later. For this example, we'll use First automation project.

      • [説明]  - 必要に応じて、プロセスの内容に関する簡単な説明を入力します。

        ドキュメントの画像

    3. (任意) [詳細オプションを表示] を選択してプロジェクト設定を構成します。このオプションを選択しない場合、プロジェクトは既定の設定で作成されます。

      • 場所 - ハード ドライブ上のプロセスの作成場所を参照します。既定の場所は %USERPROFILE%\Documents\UiPath です。
      • Compatibility - Select the project compatibility: Windows or Cross-platform. For more information about compatibilities, see About Automation Projects.
      • ノートブック ファイル - プロジェクト ノートブックとして使用する Excel ファイルを指定します。これは、プロジェクトで使用する Excel データのスクラッチパッドです。既定では、Project_Notebook.xlsx ファイルがプロジェクト フォルダーに作成されます。ファイル名の編集、ファイルの作成場所とする別のフォルダーの参照、既存の Excel ファイルの選択などができます。
      • Save for later as - Enter a name by which to refer to the Excel file in the project when an activity interacts with it. The default name is Notes.
      • アクセス パスワード - ファイルを開くときにパスワードが要求されるようにする場合、そのパスワードを入力します。
      • 編集用パスワード - ファイルを編集するときにパスワードが要求されるようにする場合、そのパスワードを入力します。
      • ファイル オプション
        • Save changes - Select this option if you want the workbook to be saved at the end of the automation. Otherwise, the file is returned to the initial state after execution. This option is not selected by default.
        • 読み取り専用 - プロセスでファイルを読み取り専用モードで開くようにするには、このオプションを選択します。これにより、ファイルの編集がロックされている場合や、編集パスワードが設定されている場合でも、データの抽出操作を実行できます。このオプションは既定では選択されていません。
    4. [作成] をクリックしてプロジェクトを作成します。

      The project is created and a blank workflow is displayed in the Designer panel. You can now start building your automation by adding activities. You can add activities from the Activities panel on the left by double-clicking them or dragging and dropping them in the Designer panel, or by clicking Add activity docs image at the center of the Designer panel.

  2. オートメーションに Web ページと Excel ファイルを追加する

    1. In StudioX, in the Activities panel, expand the App & Web Automation category, and then double-click the Use Application/Browser activity. The activity is added to the Designer panel.

    2. In the Use Application/Browser activity, click Indicate Application to automate, and then move the mouse pointer to the page with the unicorn name generator in Chrome. When the window is highlighted, click anywhere inside it.

      Web ページがオートメーションに追加され、[アプリケーション/ブラウザーを使用] アクティビティの名前がブラウザーと URL (後者は [ブラウザー URL] フィールドにも追加される) に更新され、Web ページのスクリーンショットが追加されます。

    3. In the Activities panel, select the Excel category, and then drag a Use Excel File activity and drop it inside the Use Application/Browser activity.

    4. [Excel ファイルを使用] アクティビティで次の操作を行います。

      • Click Browse for file ドキュメントの画像 to the right of the Excel file field, and then browse to the Desktop and select ExcelFile.xlsx.

      • In the field Reference as, leave the default value Excel.

        これで、このプロジェクトでは名前を「Excel」としたファイル ExcelFile.xlsx を操作対象として指定したことになります。

        ドキュメントの画像

  3. ブラウザーと Excel 内で実行するアクティビティを追加する

    1. Click Add activity ドキュメントの画像 inside the Use Excel File activity, and then locate and select the Repeat actions for rows in Excel range common scenario using the search box at the top of the window. You can easily find it if you start typing Repeat actions for rows In Excel.

      A For Each Excel Row activity is added to the Designer panel.

    2. [繰り返し (Excel の各行)] アクティビティで、次の操作を行います。

      • Click Plus ドキュメントの画像 on the right side of the In range field, and then select Excel > Sheet1 [Sheet]. Your selection is displayed in the In range field as [Excel] Sheet1.

      • [先頭行をヘッダーとする] を選択して選択範囲の先頭行が見出し行であることを指定します。

        これで、Excel ファイルの Sheet1 の行に対して反復処理を実行するように指定したことになります。

    3. Click Add activity ドキュメントの画像 inside the For Each Excel Row activity, and then locate and select the Type Into activity in the search box at the top of the window. The activity is added to the automation.

    4. [文字を入力] アクティビティで次の操作を行います。

      • [画面上でターゲットを指定] をクリックし、ユニコーン名ジェネレーターの Web ページ内の [What is your name? (あなたの名前は?)] のテキスト ボックス上にマウス ポインターを移動します。テキスト ボックスが強調表示されたら、クリックします。テキスト ボックスがターゲットとして識別され、その横のラベルがアンカーとして識別されます。[選択オプション] ウィンドウの [確認] をクリックして選択内容を保存します。ターゲットとアンカーの画像が [文字を入力] アクティビティに表示されます。

      • Click Plus docs image on the right side of the Type this field, and then select CurrentRow > Name.

        これで、Excel ファイル内の行の反復処理を行う間、反復処理中の現在の行から名前をコピーし、Web ページ上のテキスト ボックス内に貼り付けることを指定したことになります。

    5. Click Add activity ドキュメントの画像 inside the For Each Excel Row activity, below the Type Into activity, and then locate and select the Click activity in the search box at the top of the window. The activity is added to the automation.

    6. [クリック] アクティビティで、次の操作を実行します。

      • [画面上でターゲットを指定] をクリックし、ユニコーン名ジェネレーターの Web ページ内の [名前を取得] ボタン上にマウス ポインターを移動します。ボタンが強調表示されたら、クリックします。ボタンがターゲットとして識別されます。[選択オプション] ウィンドウの [確認] をクリックして選択内容を保存します。ターゲットの画像が [クリック] アクティビティに表示されます。

        これで、Excel ファイル内の行の反復処理を行う間、現在の行の名前を Web ページ上のテキスト ボックスにコピーした後に、[名前を取得] ボタンを指定したクリックすることを指定したことになります。

    7. Click Add activity ドキュメントの画像 inside the For Each Excel Row activity, below the Click activity, and then locate and select the Get Text activity in the search box at the top of the window. The activity is added to the automation.

    8. [テキストを取得] アクティビティで、次の操作を行います。

      • [画面上でターゲットを指定] をクリックし、ユニコーン名ジェネレーターの Web ページに生成された名前 (既定では、プレースホルダーのテキストである [Unicorn name]) の上にマウス ポインターを移動します。テキストが強調表示されたら、クリックします。テキストはターゲットとして識別されますが、アンカーは自動的に検出されません。ユニコーン名は生成されるたびに異なるので、プロジェクト実行時にターゲットを確実に識別するにはアンカーを追加することも必要です。

        選択モードが継続している間は、テキストの上にある [Your Unicorn Name (ユニコーン名)] ラベルにマウス ポインターを移動し、強調表示されたらクリックします。このラベルがアンカーとして識別され、[選択オプション] ウィンドウに「ターゲットおよびアンカーが検出されました。」というメッセージが表示されます。[選択オプション] ウィンドウの [確認] をクリックして選択内容を保存します。

        ターゲットとアンカーの画像が [テキストを取得] アクティビティに表示されます。

      • Click Plus docs image on the right side of the Save to field, and then select CurrentRow > Unicorn Name.

        これで、Excel ファイル内の行の反復処理を行う間、生成された名前を Web ページから反復処理中の現在の行の [Unicorn Name] 列にコピーすることを指定したことになります。

        ドキュメントの画像

  4. オートメーションを実行する

    StudioX のリボンで [保存] をクリックしてプロジェクトを保存し、[実行] をクリックしてオートメーションを実行します。

    Excel ファイルが開き、ファイル内の各行について、名前が Web ページにコピーされ、ユニコーン名が生成されます。さらに Excel ファイル内の対応するセルにユニコーン名がコピーされます。オートメーションが完了すると、Excel ファイルが保存され、閉じます。

    Congratulations! You have just created your first automation. Next, let's go over a few tutorials to learn more about what StudioX can do.

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

接続

ヘルプ リソース サポート

学習する UiPath アカデミー

質問する UiPath フォーラム

最新情報を取得