Object Repository 物件儲存庫 - UiPath
Object Repository將UI功能整合,並可分享給協作者。
Key Concepts
此功能自2020.10版本及以上項目適用,原先是以 UIAutomationNext活動呈現,現在則棄之改使用UIAutomation套件。
需使用 Modern Design Experience設定。
- 項目面板(Project)→設定(右上角)→一般(General)→開啟「現代設計體驗(Modern Design Experience)」
Object Repository由這些組成,分別由高至低層級表示:UI 描述符、應用程序、螢幕、UI 元素,並有 UI 資源庫。
- UI Descriptors:描述整體UI。
- UI Applications:整體目標對象,並可以有很多螢幕。
- Screens:作用時的範圍。
- UI Elements:其中的元素。
- Selector, Fuzzy Selector, Image, Anchor
UI Libraries:可以封裝並應用到別的流程。
Which of the following UI Element targeting methods can be used in UI Element descriptors?
- Selector, Fuzzy Selector, Image, Anchor
Which of the following are ways to boost productivity in your team using the Object Repository.
- Identify and fine-tune UI Descriptors once and share them with your team.
- Build process type projects using UI Libraries, so when the target app is upgraded or changed, all projects using it can be quickly updated.
- Quickly reuse elements in a project.
Creating and publishing a UI Library
使用建立Library建立Object Repository
發布建好的Library
What type of project would you ideally create if you want to share a set of Descriptors with your team?
- Library
In what order would you need to capture elements?
- Capture the App → Capture the Screen → Capture the UI Element
Importing and using a UI Library
- Manage Packages
What are your options for pairing imported elements with UI Automation activities?
- Dragging an element from the Object Repository to the Designer panel and selecting a recommended activity from the Command Palette
- Adding a Modern UI Automation activity to the Designer panel and dragging an element on top of it
Updating a UI Library
依照順序更改,先Screen再Elements
- 改名字(按Edit Screen) → 右邊Edit Application Descriptor重新指定
按Publish以第2版本發布
在項目面板管理套件,跳出管理面板後,更新套件
Q1:
You want to update the Descriptors for five UI Elements already present in a UI Library. You plan to use the new version of the Library to update several projects.
How would you capture the new versions of the Descriptors using the Object Repository?
A1: Right-click the UI Elements in the Object Repository, select Edit Descriptor and recapture or edit the Descriptors
Q2:
You have just updated a UI Library dependency in a Process type project. The new version of the Library contains updates on elements which are already used in activities in your project.
True or false: Now you need to manually update the activities which were paired with the old versions of the elements.
A2: False
Adding Variables to Descriptors used in a UI Library
在Work Item 的Screen 新錄製一個
把Anchor的 FuzzySelctor 改成 Selector 來避免未來過於模糊取得過多資訊
並修改以變數'{{WorkItemID}}' 表示其中選取到的文字(注意變數名稱外面要兩個大括弧再加單引號)
Which of the following targeting methods would you most likely enable when building a Descriptor with a variable tied to a given identifier for the aaname attribute?
- Selector
When pairing an element which contains a Descriptor with a variable to a UI Interaction activity, the variable is automatically declared in your project.
- False
Extracting a UI Library
再UI Descriptor選的 Type是在開發時,方便選擇對應的活動(自動跳出可選的項目)
We can extract target elements from a project built using Classic UI Activities.
- False
When extracting elements from a process type project, what is the next step after extracting all the desired elements in the Object Repository?
- Click Extract as UI Library Project and Publish the Library
Check Your Knowledge
You are extracting a UI Library from a Process type project. You have completed extracting the elements and published the Library.
How would you make sure the elements used in the starting project can be automatically updated when the UI Library is updated?
You don't need to change anything. The Library is set as a dependency by default.Import the UI Library back into the Project and manually pair the UI Activities with the elements in the Library.- Import the Library back into the project and remove the Project UI Descriptors in the Object Repository.
Which of the following prerequisites does your setup need to meet for you to be able to use the Object Repository?
- UiPath.Uiautomation.Activities package versions 2020.10 and above
Data Service enabled- Modern Design Experience enabled in the project
UiPath.UiAutomation.Activities package version 2020.4 and aboveAction Center enabled
You are building a Process type project using a UI Library. You've just added the Library as a dependency.
Where can you find the imported elements?
In the Resources panelIn the Project panel under Dependencies- In the Object Repository panel in the Descriptors tab
In the Object Repository panel in the UI Activities tab
You are developing a Process type project using an UI Library which contains variables in Descriptors. You've paired an element containing a dynamic selector with a UI Activity and got a validation error.
Which of the following options can help you identify the name of the undeclared variable?
Check the Variables panelCheck the Project panel- Check the Properties panel for the Activity
Run the process in Debug mode
You are using the Object Repository to build a UI Library from scratch for an IVR application.
What feature would you use to capture elements?
The Computer Vision Recorder- The Capture UI Elements Wizard
The UI ExplorerThe App/Web Recorder from the Ribbon menu
Your team needs to develop several automation projects using a target app which may receive UI upgrades in the near future.
Order the following steps based on how you would organize development using the Object Repository feature.
- Create a UI Library
- Import the Library in your process and start developing
- When the target app changes, update the UI Library
- Update the Library dependency in the processes using it
The Object Repository ...
is a persistent data storage service bringing powerful no-code data modeling and storage capabilities to your Robotic Process Automation (RPA) projects.offers a way for business users to handle actionable items and provide business inputs to Robots.can load assets, queues, processes, and entities, provided that the Robot is connected to Orchestrator.- ensures the management, reusability, and reliability of UI elements by capturing them as objects in a repository, sharable across projects.
You have developed a Process type project using version 1.0.0 of a UI Library. The target app has recently been upgraded and the UI Library has been updated by a colleague to v. 2.0.0. You need to update the project you have developed.
Will upgrading the UI Library dependency to v. 2.0.0 in your project automatically update the elements used in UI Activities?
Yes, if in the Library update process the elements in v.1.0.0 were deleted and new ones were captured using the Capture Elements recorder.No, you need to pair the elements with the UI Activities in your project again.- Yes, if in the Library update process the existing elements were modified using the Edit Descriptor option.
留言
張貼留言