@uipath/skills 1.207.0-preview.1994 → 1.207.0-preview.2013
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CODEOWNERS +1 -2
- package/README.md +2 -2
- package/package.json +1 -1
- package/skills/uipath-genome/references/build-guide.md +1 -1
- package/skills/uipath-genome/references/completion-report-guide.md +1 -1
- package/skills/uipath-genome/references/composite-interactions-guide.md +6 -2
- package/skills/uipath-genome/references/execution-guide.md +2 -2
- package/skills/uipath-genome/references/genome-reading-guide.md +3 -3
- package/skills/uipath-genome/references/live-application-guide.md +5 -6
- package/skills/uipath-genome/references/offline-definition-workarounds-guide.md +21 -102
- package/skills/uipath-genome/references/package-doc-errata-guide.md +3 -14
- package/skills/uipath-genome/references/selector-matching-guide.md +3 -2
- package/skills/uipath-genome/references/selector-translation-guide.md +20 -7
- package/skills/uipath-genome/references/selector-translation-sap-guide.md +1 -1
- package/skills/uipath-genome/references/selector-translation-web-guide.md +44 -10
- package/skills/uipath-genome/references/source-migration-guide.md +5 -3
- package/skills/uipath-genome/references/ui-target-migration-guide.md +5 -5
- package/skills/uipath-planner/assets/templates/component-genome-template.md +1 -1
- package/skills/uipath-planner/assets/templates/process-genome-template.md +1 -1
- package/skills/uipath-planner/references/author/author-guide.md +2 -2
- package/skills/uipath-planner/references/extract/extract-guide.md +5 -5
- package/skills/uipath-planner/references/extract/uipath-rpa-signals-guide.md +1 -1
- package/skills/uipath-planner/references/extract/uipath-source-guide.md +2 -2
- package/skills/uipath-planner/references/shared/extracted-genome-guide.md +2 -2
- package/skills/uipath-planner/references/shared/genome-format-guide.md +12 -4
- package/skills/uipath-planner/references/shared/transactional-shape-guide.md +2 -2
- package/skills/uipath-planner/scripts/check-genome.mjs +6 -5
- package/skills/uipath-platform/SKILL.md +1 -1
- package/skills/uipath-rpa/references/library-authoring-guide.md +1 -1
- package/skills/uipath-rpa/references/xaml/common-pitfalls.md +4 -0
- package/version-manifest.json +1 -1
package/CODEOWNERS
CHANGED
|
@@ -140,8 +140,7 @@
|
|
|
140
140
|
/tests/tasks/uipath-planner/genome_from_sdd/ @danmunteanu1 @vlad-coteanu-uipath @RaduAna-Maria
|
|
141
141
|
/tests/tasks/uipath-planner/check_genome/ @danmunteanu1 @vlad-coteanu-uipath @RaduAna-Maria
|
|
142
142
|
/.claude/rules/genome.md @danmunteanu1 @vlad-coteanu-uipath @RaduAna-Maria
|
|
143
|
-
/docs/guides/
|
|
144
|
-
/docs/guides/working-with-uipath-genome.md @danmunteanu1 @vlad-coteanu-uipath @RaduAna-Maria
|
|
143
|
+
/docs/guides/genome/ @danmunteanu1 @vlad-coteanu-uipath @RaduAna-Maria
|
|
145
144
|
|
|
146
145
|
# Solution skill (uip solution lifecycle)
|
|
147
146
|
/skills/uipath-solution/ @UiPath/team-merlot @UiPath/team-orange @dragossandu-dev @PopaIuliana @lucianaparaschivei @dragospopa-up @gabi-raducu
|
package/README.md
CHANGED
|
@@ -59,8 +59,8 @@ The repository ships skills covering authoring, platform operations, and diagnos
|
|
|
59
59
|
|
|
60
60
|
| Skill | Description |
|
|
61
61
|
|-------|-------------|
|
|
62
|
-
| **uipath-planner** | Solution planner, designer and genome writer, driven by verbs — `design` an SDD from a Process Definition Document, `decompose` a multi-project request into a multi-skill task list, `author`, `extract`, `edit` or `check` an automation genome (`*-genome.md`) — the spec `uipath-genome` builds — and keep it current when its SDD changes. Guide for people: [working with UiPath genomes](docs/guides/working-with-uipath-genome.md). |
|
|
63
|
-
| **uipath-genome** | Builds an automation from its genome (`*-genome.md`) through the owning skills — including refactors of a UiPath project and migrations from another framework. Supervising a live build: [live healing pass](docs/guides/live-healing-pass.md). |
|
|
62
|
+
| **uipath-planner** | Solution planner, designer and genome writer, driven by verbs — `design` an SDD from a Process Definition Document, `decompose` a multi-project request into a multi-skill task list, `author`, `extract`, `edit` or `check` an automation genome (`*-genome.md`) — the spec `uipath-genome` builds — and keep it current when its SDD changes. Guide for people: [working with UiPath genomes](docs/guides/genome/working-with-uipath-genome.md). |
|
|
63
|
+
| **uipath-genome** | Builds an automation from its genome (`*-genome.md`) through the owning skills — including refactors of a UiPath project and migrations from another framework. Supervising a live build: [live healing pass](docs/guides/genome/live-healing-pass.md). |
|
|
64
64
|
| **uipath-solution** | Solution lifecycle (`.uipx`) — `uip solution init/pack/publish/deploy/activate`. |
|
|
65
65
|
| **uipath-review** | Read-only auditor — structural, quality, and best-practice review across RPA, agents, flows, BPMN, coded apps, and solutions. |
|
|
66
66
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/skills",
|
|
3
|
-
"version": "1.207.0-preview.
|
|
3
|
+
"version": "1.207.0-preview.2013",
|
|
4
4
|
"description": "UiPath agent skills for Claude Code, Codex, Cursor, GitHub Copilot, OpenCode, UiPath Autopilot, Kiro, Windsurf, Antigravity and Devin — RPA, UI automation, UI testing, coded agents/apps/workflows, and troubleshooting. Distributed as the UiPath Claude Code plugin.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "UiPath"
|
|
@@ -21,7 +21,7 @@ These add to the Critical Rules in [SKILL.md](../SKILL.md). Each rule names its
|
|
|
21
21
|
3. **A build on an extracted genome is a migration by default**: catalogs derived from the export at preflight, UI targets and test data migrated from them, no secret ever copied — [source-migration-guide.md](source-migration-guide.md).
|
|
22
22
|
4. **Build through the owning skill, verifiably**, never by writing a project outside its journey: its mandatory reads, and for every activity kind the default XAML and the package's per-activity doc before the first file using it is written; workflows authored as files, never generated — [execution-guide.md § 2.2](execution-guide.md).
|
|
23
23
|
5. **Composite source actions are contracts in the genome and patterns at build** — [genome-reading-guide.md § Workflow](genome-reading-guide.md); [composite-interactions-guide.md](composite-interactions-guide.md).
|
|
24
|
-
6. **UiPath selector truth lives in one guide** — [selector-translation-guide.md](selector-translation-guide.md) rules 1–
|
|
24
|
+
6. **UiPath selector truth lives in one guide** — [selector-translation-guide.md](selector-translation-guide.md) rules 1–17, with what its technology guides add to them. **Verification is a property of the acting activity**, except a test project's checkpoints — [ui-verification-guide.md](ui-verification-guide.md).
|
|
25
25
|
7. **A migration's UI targets go through exploration, the offline migration and the live healing pass, in that order**; a migrated target carries a verdict — `verified`, `shape-verified` or `offline-unverified` — and the live checks it still owes, and a reachable application is a windfall, never a precondition for finishing the run — [ui-target-migration-guide.md](ui-target-migration-guide.md) rule 4 and § Verifying targets; [live-application-guide.md](live-application-guide.md).
|
|
26
26
|
8. **Most source steps are not UI activities**, and linking is the last thing done to a workflow file — [source-migration-guide.md § Source steps that are not UI actions](source-migration-guide.md); [ui-target-migration-guide.md § UI targets](ui-target-migration-guide.md).
|
|
27
27
|
9. **The transactional shape is split at build**: the genome decides no split except on a flow's `Decided:` line, the build asks the split questions for every other flow, and the behaviour is owed whatever the choice — [transactional-execution-guide.md](transactional-execution-guide.md), its § Shape Rules stating what the genome's section says.
|
|
@@ -17,7 +17,7 @@ Execution ends with a hand-off for the engineer who maintains and deploys the bu
|
|
|
17
17
|
| `integration-check.md` | the independent review of the projects against each other and what became of each finding | after every project is built (§ 3.5) |
|
|
18
18
|
| `reports/<project-slug>.md` | each project's group reports: files, validation and link counts, the activity kinds read, what each step's source defects became | at each group's end (§ 2.2 step 4) |
|
|
19
19
|
|
|
20
|
-
The README is the completion report. It is written for a reader who has this folder and the build but no working folder: in full sentences, with steps and components by the names the genome gives them ([configuration-questions-guide.md](configuration-questions-guide.md) rule 2b), source objects by the names their author wrote, and each decision with its reason, never by a ruling, part or finding number. It states each fact once: the tables stay in their files, and the README counts and links them. The final message to the user is the README's Status section and its path.
|
|
20
|
+
The README is the completion report. It is written for a reader who has this folder and the build but no working folder: in full sentences, with steps and components by the names the genome gives them ([configuration-questions-guide.md](configuration-questions-guide.md) rule 2b), source objects by the names their author wrote, and each decision with its reason, never by a ruling, part or finding number. It states each fact once: the tables stay in their files, and the README counts and links them. The final message to the user is the README's Status section and its path. A change to the build after the hand-off is written re-checks the hand-off's tables and counts against the built projects before the build is delivered again.
|
|
21
21
|
|
|
22
22
|
````markdown
|
|
23
23
|
# <Solution or project>: hand-off
|
|
@@ -19,7 +19,7 @@ Before building any UI group of an extracted genome, read the per-control `actio
|
|
|
19
19
|
| **Table cell** — act on the cell at (row rule, column caption or number) | absolute `tableRow`/`tableCol` | Column by header caption (`colName='{caption}*'` where the application notes record it exposed; otherwise a row of the live checks, and the healing pass, which can anchor the cell to its header, decides), row by content rule from the preceding find; a literal row number in the source is positional and stays flagged; double-click and follow-up keystroke preserved. A prompt inside a cell (typed value + Enter) is a type-ahead pick inside the cell | header cell, target cell; medium |
|
|
20
20
|
| **Read cell / row count / control text** | Get Text on the table element | Get Text or Get Attribute on the row-anchored cell after previewing what it extracts (owning skill's get-text guidance); row count via table extraction or a rows attribute, a row of the live checks until the notes or the healing pass confirm it | as table cell |
|
|
21
21
|
| **Collect matching elements** — the source gathers every element a locator matches (a find-all) and reads or acts on them by position | Find Elements with no target and the source's locator as its filter | Find Elements on the container the elements sit in (list, table, panel), its own element, with the children filtered by what they share, as the activity doc's targeting and filter rules prescribe. A missing container then fails the step, so an empty result means nothing to find. Elements the source reads in groups by position keep that arithmetic. Where an empty result is a valid business answer, a filter that matches nothing passes every run: a run row of the live checks tests the step on a record that has elements (§ Verifying targets) | container and the child filter; low until seen live |
|
|
22
|
-
| **Keystrokes** — keys sent to the window or the focused element | Keyboard Shortcuts to the page body; a Delay; a key after a focus move aimed at the element focus left | The first key targets the preceding step's element (Type Into with special-key tokens after typing; Keyboard Shortcuts otherwise). After a key that moves focus (Tab, a menu arrow, a key that opens a window), the next key targets the element focus moved to when the source names it, and otherwise has no target: Keyboard Shortcuts and Type Into without a target act on the element that has focus. One activity per chord the source sent; a
|
|
22
|
+
| **Keystrokes** — keys sent to the window or the focused element | Keyboard Shortcuts to the page body; a Delay; a key after a focus move aimed at the element focus left | The first key targets the preceding step's element (Type Into with special-key tokens after typing; Keyboard Shortcuts otherwise). After a key that moves focus (Tab, a menu arrow, a key that opens a window), the next key targets the element focus moved to when the source names it, and otherwise has no target: Keyboard Shortcuts and Type Into without a target act on the element that has focus. One activity per chord the source sent; a click on the same element is the fallback when the source had one. Page-scrolling keys are dropped (UiPath scrolls the target into view); a browser refresh is the browser navigation activity; only keys the source sent | none; the preceding step's element, or no target after a focus move |
|
|
23
23
|
| **Coordinate click** — click at pointer position or screen x/y | Click with an offset on the page | Identify the intended element from surrounding steps (dismiss a popup, focus the page, an unmapped button) and target it; semantic description; flag `*[Inferred]*` in the report | derived element; low |
|
|
24
24
|
| **Set state** — ensure checkbox/radio state | Click | Check/Uncheck with the state (idempotent); radio click plus verify selected | none |
|
|
25
25
|
| **Input-method hint** — source switched to key-event input for the fields that follow | ignored | Carry into the affected activities' input mode (key events / hardware, per the owning skill's input-methods guidance); the type-ahead pattern needs it | none |
|
|
@@ -31,8 +31,12 @@ Every derived element is named `derived from <anchor control> — <pattern>` in
|
|
|
31
31
|
|
|
32
32
|
- **Open a browser at a URL:** the application card opens it, at the URL on its Object Repository screen. Not Start Process: the card starts the browser with flags that keep a minimised or covered window taking input and that suppress the first-run, search-engine and profile-picker prompts and the debugger banner.
|
|
33
33
|
- **Start a desktop application:** the application card opens it, with the file path, arguments and working directory on its screen. A path the source does not record stays empty, a row of the live checks; until it is set, the card only attaches.
|
|
34
|
+
- **Attach, or open when not open:** one card whose Open option opens the application only when no instance is open, its Close `Never` where later cards act in the application (the default closes an application the card opened when the card ends). An attach the source tries before a launch, a launch after a failed attach, and a test that chooses between them (whether the process runs, its window is open, the session is attached) are that card's work: no attempt in a Try/Catch, no test and no flag recording which way it went.
|
|
35
|
+
- **Attach before acting:** no step; the card the acting steps run in reaches the application, or acts on the window its caller passes. Only an attach whose result the process uses otherwise — reported, or deciding work other than a launch — is a check: Check App State on an element of the window.
|
|
36
|
+
- **Close the application where its work ends:** Close `Always` on the card around that work, at the point the source closes it.
|
|
34
37
|
- **Force-close a process:** Kill Process.
|
|
35
|
-
- **
|
|
38
|
+
- **Bring a window to the front:** `ActivateBefore` on the Click, Type Into or Keyboard Shortcuts that next acts in it; before any other activity, Window Operations (next row).
|
|
39
|
+
- **Maximise a window, bring one to the front, or close one before its card's work ends:** Window Operations inside a card attached to a window-level screen (a screen with no elements).
|
|
36
40
|
- **Desktop screenshot on error:** Take Screenshot with no target.
|
|
37
41
|
- **"The dialog appears within N seconds":** the first activity that targets the dialog, with N as its timeout. Add a Check App State on the dialog's captured button or on the window-level screen only where the source branched on the dialog or no later step acts on it ([ui-verification-guide.md](ui-verification-guide.md)).
|
|
38
42
|
|
|
@@ -28,7 +28,7 @@ When the genome carries a design link ([genome-reading-guide.md § Design Links]
|
|
|
28
28
|
|
|
29
29
|
Gather facts the 1.3 scaffolding questions are built from before asking anything. Discovery is silent; it never replaces the questions.
|
|
30
30
|
|
|
31
|
-
1. Run the UiPath login status check (`uip login status --output json`); record what an expired session blocks (resource refresh, publish, deploy, Test Manager attachments — local init, validate, build, pack and run still work).
|
|
31
|
+
1. Run the UiPath login status check (`uip login status --output json`) and take the session's state from `Data.Status`, never from `ExpirationDate`, which is the current access token's; record what an expired session blocks (resource refresh, publish, deploy, Test Manager attachments — local init, validate, build, pack and run still work).
|
|
32
32
|
2. Confirm runtime host and edit surface; record which target frameworks and expression languages they support.
|
|
33
33
|
3. For every skill named in Build With / Components, run that skill's discovery commands for installed packages; record activity packages and versions available to the authoring host. When a project already exists in the build location, also record its declared dependencies and versions from its manifest.
|
|
34
34
|
4. Determine candidate build location: the folder containing the genome file, never the current working directory when that is a different repository.
|
|
@@ -141,7 +141,7 @@ After the test project exists, migrate each data set from the derived data catal
|
|
|
141
141
|
|
|
142
142
|
Component genome: after all groups, connect steps built by different skills (a coded workflow invoking a XAML workflow, a shared state file, a main entry point calling the others). Edit, then re-validate touched files.
|
|
143
143
|
|
|
144
|
-
Process genome: implement every Handoffs row with the named mechanism: queue item (queue declared as a solution resource), start job, Flow or BPMN invoke of a sibling component, Action Center task, file drop. Confirm each component's Interface matches the data the Handoffs row passes.
|
|
144
|
+
Process genome: implement every Handoffs row with the named mechanism: queue item (queue declared as a solution resource), library workflow call (the library consumed as a package), Invoke Process of a sibling process, start job (waited for with its outputs read, or left, as the row says), Flow or BPMN invoke of a sibling component, Action Center task, file drop. Confirm each component's Interface matches the data the Handoffs row passes.
|
|
145
145
|
|
|
146
146
|
Then refresh the solution's resources and pack it per the `uipath-solution` skill; on failure follow that skill's diagnosis. Without a tenant login, resource refresh, publish and deploy are out of reach; that skill's pack dry run, resolving packages from the local feed when libraries come from it, still proves the solution packs and is the last local gate, and a failure there takes the same diagnosis as pack.
|
|
147
147
|
|
|
@@ -20,7 +20,7 @@ Rules:
|
|
|
20
20
|
|
|
21
21
|
## File Naming and Location
|
|
22
22
|
|
|
23
|
-
- Slug: split CamelCase on capitals, lowercase, hyphens for spaces, strip other characters. "Invoice Processing" → `invoice-processing`; "InvoiceIntake" → `invoice-intake`; "Email Triage & Routing" → `email-triage-routing`.
|
|
23
|
+
- Slug: split CamelCase on capitals, lowercase, hyphens for spaces and underscores, strip other characters. "Invoice Processing" → `invoice-processing`; "InvoiceIntake" → `invoice-intake`; "Email Triage & Routing" → `email-triage-routing`.
|
|
24
24
|
- A process genome's components are at `<process-slug>-genome/<component-slug>-genome.md`.
|
|
25
25
|
|
|
26
26
|
## Build With and Components
|
|
@@ -113,8 +113,8 @@ Extracted genomes only: where every part of the genome came from. A genome witho
|
|
|
113
113
|
|
|
114
114
|
1. **One row per Workflow step**; a test component's steps are its test cases.
|
|
115
115
|
2. **Source objects** are the objects whose behaviour the step implements, primary first: a rebuild that keeps the source's names names the step's file or workflow after it. A framework source's object is `` `Name` (id) `` or `` `Name` (id, {locator}) `` — the id identifies the copy; a UiPath source's is its project-relative path, a test case with its `testCaseId`.
|
|
116
|
-
3. **Data sets** are the data sets the step
|
|
117
|
-
4. **Captures** is the number of
|
|
116
|
+
3. **Data sets** are the data sets that drive the step — the rows or items it is run over — or `none`; a configuration table, a file the step writes or a URL is in Notes.
|
|
117
|
+
4. **Captures** is the number of screenshots the source takes in the step, never a count of recorded UI actions; the build checks the rebuild's evidence against it.
|
|
118
118
|
5. **Notes** is free text no check reads.
|
|
119
119
|
|
|
120
120
|
**Unused parts.** A kept workflow nothing invokes is built like any other step. Parts in the `Not covered` or `Unused` row are left out of the build unless translated first.
|
|
@@ -7,7 +7,7 @@ The two live phases of a migration's UI targets ([ui-target-migration-guide.md](
|
|
|
7
7
|
1. **Drive it yourself, read-only, outside the healing pass's runs.** Open pages, menus and lists, type into a field to make a popup appear, and cancel out; never submit, save or confirm. Where a step the run does not take blocks the way — a sign-in, since the run never types a password, or a page reached only through a step that writes — ask the user to get past that step, then carry on.
|
|
8
8
|
2. **Leave the machine as it was.** Record the window baseline before driving and close only the windows the build opened, as the owning skill's run procedure prescribes; never close what the Live application answer says must stay open.
|
|
9
9
|
3. **Use the UIA package's live capabilities** — driver default, attribute listing, selector evaluator, target validation, snapshot reload, element-interaction probes ([selector-translation-guide.md](selector-translation-guide.md) rule 15) — with their syntax routed from the package guide. Stale refs are normal: every capture re-mints them, a driver-default call can invalidate the refs of the capture it read from, and a click that re-renders a widget (a search box or prompt moving into a popup) invalidates its refs too; re-capture rather than retry.
|
|
10
|
-
4. **A comparable instance is checked through copies.** Copy the definition to a scratch file,
|
|
10
|
+
4. **A comparable instance is checked through copies.** Copy the definition to a scratch file, give the copy that instance's scope, and run the validator against the copy with values present on that screen for its selector variables — the project's own definitions and scope are never pointed at the other instance.
|
|
11
11
|
5. **Captures and probes work in a scratch project in the working folder**, on the build's package versions, never in a project of the build — exploration's, the contract probe's and the healing pass's recaptures alike: every live command that captures names the scratch project, because a definition generated from a capture stores the capture's screenshot, whatever the screen showed, in that project's `.screenshots/` folder, and the owning skill's target-capture procedure registers what it finds in that project's Object Repository. Probe workflows are written there too; what a probe settles goes into the notes, so no part of the offline migration runs one.
|
|
12
12
|
|
|
13
13
|
## Exploring — before the targets are derived
|
|
@@ -30,8 +30,6 @@ Explore once the migration preflight has derived the catalogs and before the tar
|
|
|
30
30
|
6. **Fix the rule before the family is derived**, then re-run steps 2–4 on a second instance of the family.
|
|
31
31
|
7. **Record in the notes**: the driver's default, the shape the family ships with, the collisions found, and the label the family carries — `verified` or `shape-verified` — and why. A family left unexercised is recorded as such, and a *partly* exercised one says which part — an editable grid cell whose row and column matched but whose input was never reached is not the same as a cell that was never seen.
|
|
32
32
|
|
|
33
|
-
**Seeds.** During the walk, exploration resolves the seed definitions the contract probe and the offline migration copy — a screen seed from the first page's window and an element seed from one element on it, with the driver's defaults and before any sign-in — into the working folder ([offline-definition-workarounds-guide.md § Starting-point definition file](offline-definition-workarounds-guide.md)).
|
|
34
|
-
|
|
35
33
|
### Contract probe — before the first part that authors
|
|
36
34
|
|
|
37
35
|
A contract is a shape the build repeats across files: the card that attaches to a window and the scope its targets carry, how a dialog is checked for and how it is acted on, how a table cell is read, a pattern helper with its verify, the input method on a card. Per-file validate and build check that each copy is well-formed, not that the shape acts on the application, so a wrong contract validates and builds in every file it reaches and shows only in the healing pass. Once the target spec is written and the shared decisions fix the build's contracts, and before the first part that authors:
|
|
@@ -51,8 +49,9 @@ Walk the read-only rows of the live checks screen by screen:
|
|
|
51
49
|
|
|
52
50
|
1. **Validate each element's strict step** with target validation, the screen in the state the element needs; a parametrised element at two values of each selector variable (two rows, two captions).
|
|
53
51
|
2. **An element that does not resolve, or resolves another node, is captured again** with the owning skill's target-capture procedure, in the scratch project (§ Driving the application, item 5), given its semantic description as the element to find. Take the selector the driver gives for the node found, and put each selector variable of the spec entry back in the attribute that carries the varying part; keep the window's scope unless the live window proves it wrong. Edit the spec entry — the selector, and the description wherever it explains the selector, its variables or the search it makes — and let the run's target tool replace the element, then validate again. A fix that shows the family's rule was wrong is applied to the family's other elements, each validated.
|
|
54
|
-
3. **
|
|
55
|
-
4. **
|
|
52
|
+
3. **An element that resolves keeps only what its node needs.** A selector translated without seeing the screen carries what the source's way of finding decided ([selector-translation-guide.md](selector-translation-guide.md) rule 17). Give it the node's own `tag` where it has none, drop each criterion that no state the step meets needs, and replace workflow logic that repeats a choice by place on screen with one target only where that target resolves the node the logic kept in every state the step meets, as an in-place edit ([ui-target-migration-guide.md § UI targets — pipeline](ui-target-migration-guide.md), linking item 1) that closes the logic's run row; otherwise the logic and its run row stay. Validate again.
|
|
53
|
+
4. **On a comparable instance only the family samples are checked** (§ Driving the application, item 4), and the family's elements take its label.
|
|
54
|
+
5. **Close each row** with its state, and change the element's label in its description in place ([ui-target-migration-guide.md](ui-target-migration-guide.md) rule 2). The `run` rows, and the elements of a screen only a run reaches, stay open for the runs.
|
|
56
55
|
|
|
57
56
|
### Runs — only on the user's yes
|
|
58
57
|
|
|
@@ -84,7 +83,7 @@ Where the answer is Neither, each UI activity gets the owning skill's placeholde
|
|
|
84
83
|
|
|
85
84
|
## Anti-patterns
|
|
86
85
|
|
|
87
|
-
1. **Deriving the target spec before exploring a reachable application, or exploring it without writing the notes
|
|
86
|
+
1. **Deriving the target spec before exploring a reachable application, or exploring it without writing the notes.** The offline migration then goes back to the application for the windows, the clean start, the input method and the grid shapes, and the spec ships the rules the driver would have corrected (§ Exploring).
|
|
88
87
|
2. **Starting the offline migration on a reachable application without a contract probe.** A wrong contract then validates and builds in every file it reaches, and only the healing pass finds it (§ Contract probe).
|
|
89
88
|
3. **Submitting, saving or confirming outside the runs, or running them when the user did not allow it or on data the user did not name** (§ Driving the application, § Runs).
|
|
90
89
|
4. **Taking a step's success for a healed target** — a fallback, an empty read, a wrong pick — **or a family sample on a comparable instance for a check of every target** (§ Live healing pass).
|
|
@@ -1,132 +1,51 @@
|
|
|
1
1
|
# Offline Target Definition Workarounds — TEMPORARY
|
|
2
2
|
|
|
3
|
-
Scope: the offline migration ([ui-target-migration-guide.md](ui-target-migration-guide.md) rule 4), which builds every definition from the target spec, whether or not the application is reachable.
|
|
3
|
+
Scope: the offline migration ([ui-target-migration-guide.md](ui-target-migration-guide.md) rule 4), which builds every definition from the target spec, whether or not the application is reachable. The CLI resolves a first definition only from a live snapshot (`resolve-defaults`) and creates no definition file, so the offline migration writes a one-line seed per screen and per element and fills it through the definition commands. An offline definition carries no anchor: a caption the source recorded beside a control becomes a `<nav>` path in the strict selector ([selector-translation-guide.md](selector-translation-guide.md) rules 6 and 12).
|
|
4
4
|
|
|
5
|
-
**Precedence.** The UIA package guide's rule stands — definitions are CLI-owned, never hand-edited.
|
|
5
|
+
**Precedence.** The UIA package guide's rule stands — definitions are CLI-owned, never hand-edited. The seeds below are the documented exception for definitions built from the target spec, not general licence. An application automated without an export is captured with the owning skill's target-capture procedure instead, and the live healing pass captures a target live where its derived selector fails ([live-application-guide.md § Live healing pass](live-application-guide.md)).
|
|
6
6
|
|
|
7
7
|
## Starting-point definition file
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Each screen and each element starts from a seed file of its own in the working folder, outside every project: a project's build compiles every `.xaml` under it.
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
2. **Exported** from any activity that already carries a target:
|
|
13
|
-
|
|
14
|
-
```bash
|
|
15
|
-
uip rpa uia target-anchorable get-definition \
|
|
16
|
-
--definition-file-path "$DEFS/element-seed.xaml" \
|
|
17
|
-
--activity-id "$ACT" --workflow-file-path "$XAML_REL"
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
An empty placeholder target cannot be exported (`Could not find target`), so one activity in the project must hold a real target first.
|
|
21
|
-
|
|
22
|
-
3. **No seed available** — author the minimal shape below.
|
|
23
|
-
|
|
24
|
-
```xml
|
|
25
|
-
<uix:TargetAnchorable DesignTimeRectangle="0, 0, 0, 0"
|
|
26
|
-
ScopeSelectorArgument="<html app='chrome.exe' title='*App*' />"
|
|
27
|
-
SearchSteps="Selector" Version="V6">
|
|
28
|
-
<uix:TargetAnchorable.Anchors>
|
|
29
|
-
<scg:List x:TypeArguments="uix:ITarget" Capacity="0" />
|
|
30
|
-
</uix:TargetAnchorable.Anchors>
|
|
31
|
-
</uix:TargetAnchorable>
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
Sibling `.xaml.metadata`: `{"ActivityType": "Click", "Anchor0": null, "Anchor1": null, "Anchor2": null, "Anchor3": null, "Name": "", "Description": ""}`.
|
|
35
|
-
|
|
36
|
-
No `xmlns` declarations needed — the undeclared `uix:`, `scg:` and `x:` prefixes are what the CLI itself writes. Set `ActivityType` through `--activity-type`, not by hand: a hand-written value does not persist, the option accepts only its own enum values, and it drives the selector reliability rules (a `GetText` target avoids content-reflecting attributes, a `Check` target avoids state attributes). A definition can only be updated once it exists — hence the seed.
|
|
37
|
-
|
|
38
|
-
Field semantics deciding whether an offline file behaves:
|
|
39
|
-
|
|
40
|
-
| Field | What to write |
|
|
11
|
+
| Definition | Seed |
|
|
41
12
|
|---|---|
|
|
42
|
-
|
|
|
43
|
-
|
|
|
44
|
-
| `FullSelectorArgument` | the **partial** strict selector, relative to the scope. Full selector is scope + partial, computed at runtime, never written |
|
|
45
|
-
| `ScopeSelectorArgument` | the window selector. Only the main target carries one; anchors inherit it |
|
|
46
|
-
| `DesignTimeRectangle` | **load-bearing wherever anchors, CV or Image are used**: the reference geometry anchor scoring measures against, so zeros silently degrade an anchored fuzzy target. Zeros are fine only for a strict, unanchored target |
|
|
47
|
-
| `Guid` | No author-supplied value needed. `update-definition` or Object Repository registration generates it when absent; registration may preserve a value already present |
|
|
48
|
-
| `ElementType` | cosmetic — logging and design-time hints only; `None` is harmless |
|
|
13
|
+
| element | `<uix:TargetAnchorable SearchSteps="Selector" Version="V6" />` |
|
|
14
|
+
| screen | `<uix:TargetApp Version="V3" />` |
|
|
49
15
|
|
|
50
|
-
|
|
16
|
+
The definition commands write every other field and the `.xaml.metadata` sibling (§ Order of commands, offline); the undeclared `uix:` prefix is what the CLI itself writes. The CLI never adds `Version`, and it is not decorative: at V6 the runtime no longer expands a fuzzy selector itself, and without it a target falls back to legacy semantics (no anchor-alignment factor, no image scale factor). An element's strict selector is the **partial** selector, relative to its scope selector; the full selector is scope + partial, computed at run time.
|
|
51
17
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
**Write-back** to an existing Object Repository element is `object-repository replace-elements` (keeps the `referenceId`, so workflow links survive). Never `create-elements` on an element that already exists — that adds a duplicate and orphans the link.
|
|
18
|
+
A definition resolved from a live capture is never a seed: a definition built from it keeps the capture's anchors, the launch settings of the application captured and the capture's screenshot, which registration stores with the screen or element.
|
|
55
19
|
|
|
56
20
|
## Screens — `TargetApp` definitions offline
|
|
57
21
|
|
|
58
|
-
A screen's definition is a `uix:TargetApp
|
|
59
|
-
|
|
60
|
-
The seed `create-screen` accepts:
|
|
22
|
+
A screen's definition is a `uix:TargetApp`, filled from its seed by `uip rpa uia target-app update-definition`, then registered and linked (§ Order of commands, offline).
|
|
61
23
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
- `Area`: zeros are fine offline.
|
|
67
|
-
- `Selector`: set with `--selector`. A literal selector also sets `BrowserType`, so the seed carries none.
|
|
68
|
-
- Launch settings, which the card opens the application with: `Url` on a browser screen; `FilePath`, `Arguments` and `WorkingDirectory` on a desktop one. Set them with `update-definition`'s `--url`, `--file-path` and `--working-directory`; an empty value clears one, such as a launch setting a seed resolved live brought from the application explored. `Arguments`, which has no option, is written in the seed. `create-screen` stores them. After `create-screen`, read the screen back with `object-repository get-screen-xaml` to check that it holds them.
|
|
69
|
-
- A launch setting is a literal or one variable. The options take a variable as a `{{variable}}` token and store it as `string.Format("{0}", <variable>)` (`[string.Format("{0}", BaseUrl)]` in a VB project), the text `link-screen` writes into the card, so the card and the screen hold the same expression; after the first link, compare the card's text with the screen's ([package-doc-errata-guide.md](package-doc-errata-guide.md) § Tools, screen link with a variable launch setting). The variable must be in scope in every workflow with a card linked to the screen; where it is not, `link-screen` fails with `Failed to save the workflow after updating the activity.` and the file stays as it was.
|
|
70
|
-
- The input method the application notes record for the application ([live-application-guide.md § Exploring](live-application-guide.md)) is `--input-mode` on the screen's definition: `create-screen` stores it, and `link-screen` applies it to the card and reports a change (`The activity's input mode changed from 'HardwareEvents' to 'Simulate'.`).
|
|
24
|
+
- `--selector` sets the window selector; a literal selector also sets `BrowserType`.
|
|
25
|
+
- Launch settings, which the card opens the application with: `--url` on a browser screen; `--file-path` and `--working-directory` on a desktop one. `Arguments` has no option: it is written in the seed, a variable in the form `link-screen` writes ([package-doc-errata-guide.md](package-doc-errata-guide.md) § Tools). After `create-screen`, read the screen back with `object-repository get-screen-xaml` to check that it holds them.
|
|
26
|
+
- A variable launch setting must be in scope in every workflow with a card linked to the screen; where it is not, `link-screen` fails with `Failed to save the workflow after updating the activity.` and the file stays as it was.
|
|
27
|
+
- The input method the application notes record for the application ([live-application-guide.md § Exploring](live-application-guide.md)) is `--input-mode`, which `link-screen` applies to the card.
|
|
71
28
|
- `link-screen` writes the screen's launch settings into the card it links. A card linked before the screen changed keeps its copy until it is linked again.
|
|
72
29
|
|
|
73
30
|
## Order of commands, offline
|
|
74
31
|
|
|
75
32
|
The run's target tool ([ui-target-migration-guide.md § UI targets](ui-target-migration-guide.md)) runs these steps. A success line is not proof: a batch past the shell's length limit reports success for the part that arrived. After each `create-*` and `link-*`, count the `TargetApp` / `TargetAnchorable` entries in the file it wrote to (the Object Repository file, the workflow) and stop when the count did not move.
|
|
76
33
|
|
|
77
|
-
1.
|
|
78
|
-
2.
|
|
34
|
+
1. A seed per screen → `target-app update-definition --name --description --selector`, with the launch options and `--input-mode` § Screens names.
|
|
35
|
+
2. A seed per element → one `target-anchorable update-definition --name --description --scope-selector --activity-type --search-steps "{'strictSelector':{'value':'<selector>'}}"`. Where the user asked for the semantic step ([selector-translation-guide.md](selector-translation-guide.md) rule 12), `target-anchorable enable-steps --search-steps "{'semantic':{'value':'<semantic description>'}}"` adds it beside the strict one. A registered element changes the same way on its exported definition (`object-repository get-element-definition`), then `replace-elements`.
|
|
79
36
|
3. `object-repository create-app` → `create-screen` with the screen definition → `create-elements` with every new element definition of that screen in one call (`--definition-file-paths`, comma-separated). The ids the registry keeps come from what they print:
|
|
80
37
|
- `create-app` prints the application's `referenceId`.
|
|
81
|
-
- `create-screen`
|
|
82
|
-
- `create-elements` prints one `DefinitionFilePath:` / `ReferenceId:` pair per definition and writes the `Reference` into each definition file.
|
|
38
|
+
- `create-screen` and `create-elements` print a `Name:` / `DefinitionFilePath:` / `ReferenceId:` block per definition; an entry `create-elements` refuses prints `Error:` in place of its `ReferenceId:`.
|
|
83
39
|
- `get-screens` and `get-elements` print one `ReferenceId:` / `Name:` / `Description:` block per entry — the store lookup that find-before-create makes.
|
|
84
|
-
- `
|
|
85
|
-
4. `link-screen` links one card per call. `link-elements` takes entries for several workflows in one call (`workflowFilePath` per entry) and prints one `Successfully linked … to activity '<id>' in workflow '<file>'` line per entry.
|
|
86
|
-
5. An element whose selector binds a number attribute to a selector variable takes steps 2–4 as § Selector variables in number attributes changes them.
|
|
87
|
-
|
|
88
|
-
## Selector variables in number attributes
|
|
89
|
-
|
|
90
|
-
A number attribute bound to a selector variable (`tableRow='{{Row}}'`) cannot be registered through the CLI. That holds for `tableRow` and `tableCol` on a `sap`, `uia` or `java` target, and for the `nav` counts `up`, `next` and `prev`; `idx` bound to a variable registers (table below).
|
|
91
|
-
|
|
92
|
-
| Command | Result |
|
|
93
|
-
|---|---|
|
|
94
|
-
| `target-anchorable update-definition --full-selector` with the variable | stores the `string.Format` form, reports success |
|
|
95
|
-
| any later command reading that definition — `update-definition` without `--full-selector` (`--name`, `--description`, `--activity-type`), `create-elements`, `replace-elements` | `Invalid configuration for Target '<name>': The attribute '<attribute>' is not supported.` |
|
|
96
|
-
| same selector, literal value | passes every command |
|
|
97
|
-
| `idx` bound to a variable — any tag, in element, fuzzy, scope and screen selectors; `webctrl` table attributes bound to a variable | pass every command and resolve at run time |
|
|
98
|
-
| definition's `string.Format` rewritten as an interpolated string or a concatenation | registers; `link-elements` then writes the activity's target without a strict selector and still reports success |
|
|
99
|
-
| `target-anchorable link` with that registered definition file | links with the `Reference` and drops the expression the same way |
|
|
100
|
-
|
|
101
|
-
The error names the attribute, but the attribute is valid: keep it, because the selector without it no longer names the row, column or relative node it acts on. A run evaluates the Object Repository element's selector, not the activity's copy in the workflow, and an expression selector runs only when the build compiled the same expression text from the workflow; otherwise the activity fails with `Expression Activity type 'CSharpValue`1 (…)' requires compilation in order to run`. Workaround, per element:
|
|
102
|
-
|
|
103
|
-
1. Run one `target-anchorable update-definition` on the element's definition with the variable selector in `--full-selector`, and with `--name`, `--description` and `--activity-type` in the same call: every later call without `--full-selector` rejects the file. It writes the `string.Format` expression in the project's expression language.
|
|
104
|
-
2. In the definition file, rewrite that expression (or that literal) as an interpolated string: `string.Format("…tableRow='{0}'…", Row)` becomes `$"…tableRow='{Row}'…"`. In a C# project that is the text of the `CSharpValue`; in a VB project it is the attribute value `[$"…"]` (both checked).
|
|
105
|
-
3. Register the definition with `create-elements` (`replace-elements` for an existing element), then link as usual.
|
|
106
|
-
4. After the link pass, every target linked to that element in one workflow file is the same tag, without the selector. Restore them with one Edit per file and element, `replace_all` on that tag: add the definition's `FullSelectorArgument`, text unchanged, and keep `Reference`. It is a child element in a C# project and an attribute in a VB project. Validate the file. The build compiles the expression, and per-file `validate`, `build` and the run accept the target.
|
|
107
|
-
5. A re-link writes the target without the expression again, and no link command keeps it. Re-apply step 4 after every re-link and after every `replace-elements` that changes the expression text. The run's target tool does it ([ui-target-migration-guide.md § UI targets](ui-target-migration-guide.md)). The link table marks these rows, and the report lists them.
|
|
108
|
-
|
|
109
|
-
Linked target after step 4 (C# project):
|
|
110
|
-
|
|
111
|
-
```xml
|
|
112
|
-
<uix:TargetAnchorable … Reference="<ELEMENT_REFERENCE_ID>" ScopeSelectorArgument="<wnd app='saplogon.exe' cls='SAP_FRONTEND_SESSION' title='…' />" SearchSteps="Selector" Version="V6">
|
|
113
|
-
<uix:TargetAnchorable.FullSelectorArgument>
|
|
114
|
-
<InArgument x:TypeArguments="x:String">
|
|
115
|
-
<CSharpValue x:TypeArguments="x:String">$"<sap id='usr/…/tbl…' tableRow='{Row}' tableCol='1' />"</CSharpValue>
|
|
116
|
-
</InArgument>
|
|
117
|
-
</uix:TargetAnchorable.FullSelectorArgument>
|
|
118
|
-
</uix:TargetAnchorable>
|
|
119
|
-
```
|
|
40
|
+
- `update-definition` prints `Message: Target anchorable definition updated.` (`Target application definition updated.` for a screen); `replace-elements` prints one `Successfully replaced Object Repository element '<referenceId>' from definition file '<path>'.` line per entry.
|
|
41
|
+
4. `link-screen` links one card per call. `link-elements` takes entries for several workflows in one call (`workflowFilePath` per entry) and prints one `Successfully linked … to activity '<id>' in workflow '<file>'` line per entry. After a `replace-elements` that changes an expression in an element — a selector variable, or a semantic description holding one — every activity linked to that element is linked again ([package-doc-errata-guide.md](package-doc-errata-guide.md) § Tools).
|
|
120
42
|
|
|
121
43
|
## CLI behaviour observed offline
|
|
122
44
|
|
|
123
45
|
- `uip rpa uia …` relay commands (`object-repository *`, `target-anchorable *`, `target-app *`) reject `--output`; read what they print.
|
|
124
46
|
- On Windows a script that starts `uip.cmd`, the shim other languages' process calls resolve `uip` to, passes its arguments through `cmd.exe`, which expands `%VAR%` and splits unquoted free text at `|`, `&`, `<` and `>`. A description quoting a source path (`1|1|$vRow$`) then fails with `'1' is not recognized as an internal or external command` and nothing is written. A script passes free text to the CLI from PowerShell 7 (`pwsh`), calling `uip` by name: the `uip.ps1` shim PowerShell resolves it to passes each argument byte for byte, double quotes included (checked). Windows PowerShell 5.1 drops embedded double quotes, and Git Bash rewrites an argument starting with `/` into a Windows path.
|
|
125
|
-
-
|
|
126
|
-
- `target-app update-definition` prints `Target application definition updated.`; confirm the write by reading the definition file back (`--name`, `--description` and `--input-mode` land in its `.metadata` sibling).
|
|
127
|
-
- `object-repository link-screen` / `link-elements` resolve `--workflow-file-path` against the shell's working directory, not `--project-dir`: pass an absolute path inside the project, or every entry fails with "not inside the project directory".
|
|
47
|
+
- To check what the store holds, read each element's `.metadata` under `.objects` (JSON: `Name`, `Description`, `Type`, `Reference`) instead of exporting each definition; the definition in its `.data` folder declares `utf-16` but is UTF-8.
|
|
128
48
|
- Per-file `validate` accepts a definition whose strict selector carries a literal `idx` above 2; `build` rejects it (`UI-REL-001`, an Error under the default analyzer configuration). What replaces the index, and how an index that stays is decided: [selector-translation-guide.md](selector-translation-guide.md) rule 7; a selector changed that way is written back with `target-anchorable update-definition` → `object-repository replace-elements`.
|
|
129
|
-
- `replace-elements` keeps the `referenceId`, so the links of already-linked workflows survive a selector change. The run uses the replaced selector at once; the activity's copy in the workflow stays as it was until Studio syncs it or the activity is re-linked, and that stale copy is not an error unless the element holds an expression the activity's copy lacks: a selector variable (§ Selector variables in number attributes) or a semantic description with one ([package-doc-errata-guide.md](package-doc-errata-guide.md) § Tools).
|
|
130
49
|
- A strict selector with a `<nav>` path passes `update-definition`, `create-elements`, `link-elements`, per-file `validate` and `build`, and resolves at run time. `selector-intelligence evaluate` rejects it (one ref and the attributes per tag), so `target-anchorable validate --step Strict` checks it against the live application, and its screenshot shows the node the path landed on. `fuzzify` keeps the `<nav>` tag and writes `matching:` / `fuzzylevel:` on its count.
|
|
131
50
|
- Element metadata `ActivityType` may stay `None` on elements registered before their acting activity was known: it only tunes selector generation, which offline has already happened.
|
|
132
51
|
|
|
@@ -146,8 +65,8 @@ Structural validity is the easy half. A catalog cannot tell you these, and each
|
|
|
146
65
|
| Whether the grid exposes `tableRow`/`colName`/`rowName` | assume div-based (text-pinned rows) or assume `TABLE` | tag-only cell plus a description naming row rule and column; live, read one cell's attribute list (rule 8) |
|
|
147
66
|
| Where a caption recorded beside a control sits in the tree relative to it | an anchor with zero design-time rectangles, or the caption written onto the control | the caption leaf and the `<nav>` path the source recorded or the framework pack's widget anatomy documents, else a tag-only target (rule 13); live, target validation shows the node a path lands on (rule 6) |
|
|
148
67
|
|
|
149
|
-
Shared failure mode: all these wrong answers *look* like finished work and pass every structural check, while a tag-only target with a good semantic description looks unfinished and tells the live pass what to capture. Use the honest shape. Two fields the driver writes on every live definition and the
|
|
68
|
+
Shared failure mode: all these wrong answers *look* like finished work and pass every structural check, while a tag-only target with a good semantic description looks unfinished and tells the live pass what to capture. Use the honest shape. Two fields the driver writes on every live definition and the seed leaves out — `ElementVisibilityArgument="Interactive"` and `WaitForReadyArgument="Interactive"` — are project-setting defaults, not requirements; a live pass restores them when it replaces the definition.
|
|
150
69
|
|
|
151
70
|
## Before shipping
|
|
152
71
|
|
|
153
|
-
An offline-authored definition is structurally valid but functionally unproven: `target-anchorable validate` (`--step Strict` isolates the strict step) probes a live application, so the definition stays owed a live pass and its element description says `offline-unverified`. Before that pass is possible, read the definitions back against
|
|
72
|
+
An offline-authored definition is structurally valid but functionally unproven: `target-anchorable validate` (`--step Strict` isolates the strict step) probes a live application, so the definition stays owed a live pass and its element description says `offline-unverified`. Before that pass is possible, read the definitions back against [selector-matching-guide.md § Checking a definition](selector-matching-guide.md). Everything a structural check cannot see is what the live pass is for ([ui-target-migration-guide.md § Verifying targets](ui-target-migration-guide.md)).
|
|
@@ -38,12 +38,6 @@ The owning skill's contract reads the installed package's per-activity doc for e
|
|
|
38
38
|
| Get File List, Upload Files | declare the `Result` / `AllResults` variable as `scg:List(umo365fm:O365DriveRemoteItem)` | Both are `OutArgument<O365DriveRemoteItem[]>`: bind a `umo365fm:O365DriveRemoteItem[]` variable. A `List` variable fails to load (`Set property '…Result' threw an exception`) |
|
|
39
39
|
| Set Email Categories | `CategoriesToAssign` / `SpecificCategoriesToRemove` only as a VB flat attribute, since an `InArgument` cannot be typed `String[]` | `<InArgument x:TypeArguments="s:String[]">` works in VB and C# projects; only `x:String[]` fails to load |
|
|
40
40
|
|
|
41
|
-
## `UiPath.UIAutomation.Activities` — docs shipped with 26.10.6 and earlier
|
|
42
|
-
|
|
43
|
-
| Activity | Installed doc says | The activity does |
|
|
44
|
-
|---|---|---|
|
|
45
|
-
| SAP Table Cell Scope | `ColumnName` is "Column name from the table"; `RowSelector` is "the row selector/filter to use"; `TableRow` is the found row only for First Empty Row, otherwise the row index input; nothing on how a child reaches the cell | A plain `ColumnName` is matched as the column's tooltip (`colTooltip`), which often differs from the header text; a table control's header text goes in as the column selector `<sap colName='<header text>' />`. `RowSelector` is a cell selector inside the table, the column named the same way beside `text` (`<sap colTooltip='<tooltip>' text='<value>' />`); plain text fails as not a valid SAP selector. `TableRow` is the found cell's row in every mode. Type Into, Keyboard Shortcuts and Take Screenshot in the body without a target act on the found cell; a child that reads or clicks it takes it through its `InUiElement`, set to the body's `ContextTarget`; another column of that row is a second scope with `RowType` `Index` and `RowIndex` set to the first scope's `TableRow` |
|
|
46
|
-
|
|
47
41
|
## Tools — defects seen in builds, until fixed
|
|
48
42
|
|
|
49
43
|
Each row was met in a build that validated and packed, or in a live search against the application; the third column is what that build did instead. Versions: Flow builder SDK `@uipath/maestro-builder-sdk` 6.15.3, `uip` 1.204.
|
|
@@ -59,19 +53,14 @@ Each row was met in a build that validated and packed, or in a live search again
|
|
|
59
53
|
| `uip maestro registry prepare` on Windows | Fails with `ENOENT`: the SDK spawns `uip` without a shell, and `uip` is a `.cmd` shim | Writes the bindings file by hand from `uip is connections list --all-folders --output json` |
|
|
60
54
|
| `uip maestro flow check` | Warns `RPA_FOLDER_NOT_PATH` on a personal-workspace folder, a valid single-segment path | Reviews and accepts the warning |
|
|
61
55
|
| `uip api-workflow run` | Prints `fast-json-patch MODULE_NOT_FOUND` stack traces when the working directory has no `node_modules`; the result is correct | Judges the run by its envelope |
|
|
62
|
-
| `uip rpa uia target-anchorable update-definition`, `UiPath.UIAutomation.Activities` 26.10.3 | Rejects `idx` bound to a selector variable at the first call, on every tag (checked on `java` and `webctrl`); 26.10.4 registers it | Probes once per run, before the first element is defined: one `update-definition` with `idx='{{Row}}'` on a seed copy, against the project, the answer recorded in the brief. Where it is rejected, every positional selector variable takes [offline-definition-workarounds-guide.md § Selector variables in number attributes](offline-definition-workarounds-guide.md), with a literal in the variable's place at its first step |
|
|
63
56
|
| `uip tm testcases link-package` | Requests a page larger than 100 and fails with HTTP 400 (`Page size cannot be greater than 100`) | Creates each test case and links it with `testcases link-automation`, one by one |
|
|
64
57
|
| `uip rpa run` | Prints a Log Message at Fatal as `[Verbose]`; Orchestrator records it as Fatal | Reads a log line's level from the workflow, not from the printed tag |
|
|
65
|
-
| `uip rpa data-fabric-entities install` |
|
|
58
|
+
| `uip rpa data-fabric-entities install` and `list`, `UiPath.UIAutomation.Activities` 26.10.8 | Fail with `MissingMethodException` (`EntitiesContext.set_EntitiesContainer` on install, `IEntitiesInstallParams.GetSelectedEntities` on list) in a project that references UI Automation; the same commands succeed in a project without it | Installs the entities before UI Automation is added to the project. A later install runs in a scratch project that references no UI Automation package, with the project's namespace (the install's namespace option); the build then copies that project's service document (`.entities/EntitiesStore.json`) and its `project.json` `entitiesStores` entry into the project, and the entity types compile |
|
|
66
59
|
| `uip rpa build`, `UiPath.DataService.Activities` 26.10.1 | Warns `Could not resolve arguments for XAML workflow … violates the constraint of type 'TEntity'` on every workflow holding an entity activity, though the entity type meets the constraint; a coded workflow calling such a file through `workflows.<Name>()` then fails the build's own compile (`CS1061` on `WorkflowRunnerService`) while the build reports success. `uip rpa run` and `uip rpa pack` compile and run the same call | Accepts the warning; a coded caller of such a file is checked by a local run and a pack, not by the build's result |
|
|
67
60
|
| `uip rpa init` from a template package (Test Automation Framework 26.10.0) | Creates `designOptions.fileInfoCollection` empty: the template's execution and test-case templates and its sample test case are not registered, so the project packs with no entry point | Registers them as the owning skill's guidance for the template states |
|
|
68
61
|
| `uip rpa init` from a template package holding coded files (Test Automation Framework 26.10.0) | Keeps the template project's namespace in the `.cs` files, while the generated `CodedWorkflow` base class is in the new project's: the coded files fail with `CS0246` (the next row) | Sets every coded file's namespace to the project's, then validates each one |
|
|
69
62
|
| `uip rpa build` | Reports success for a project whose coded file does not compile (`CS0246`), which `uip rpa validate` of that file reports | Validates every coded file on its own; the build's success does not cover them |
|
|
70
63
|
| `uip rpa run`, `uip rpa debug start` | Run a test case bound to an execution template without the template, with no option to apply it: its configuration load, hooks, timeout and failure capture do not apply | Exercises the template by packing the project and running the case's generated entry point with the local Robot (`UiRobot.exe execute --file "<NUPKG_PATH>" --entry ".generated\<CASE_PATH>.xaml"`). The Robot caches a package by id and version, so every pack takes a new version |
|
|
71
64
|
| `uip solution`, solution-tool 1.206.0-dev | A Windows project's process resource is written with `targetFrameworkValue` `Portable`, the process specification's default, not the project's target framework; `resources edit --patch` reports success and leaves it unchanged, since the specification marks it read-only | Lists it in the solution's open items: check the deployed process's runtime before its first run. Whether a deploy takes the runtime from this value or from the package is untested |
|
|
72
|
-
|
|
|
73
|
-
| UI Automation
|
|
74
|
-
| UI Automation screen link with a variable launch setting, `UiPath.UIAutomation.Activities` 26.10.6 and 26.10.7 | `link-screen` writes a variable launch setting into the card as `string.Format("{0}", <variable>)`, while a screen that stores the plain variable keeps it, and a run evaluates the screen's copy, which the build never compiled: the card validates and builds, then fails at run time with ``Url Expression Activity type 'VisualBasicValue`1 (BaseUrl)' requires compilation in order to run`` (``CSharpValue`1`` in a C# project). On 26.10.6 and earlier `target-app update-definition` has no launch options, so a variable reaches the screen only as written in the seed | Writes a variable launch setting in the seed as `link-screen` writes it, `[string.Format("{0}", BaseUrl)]` in a VB project and the `CSharpValue` text `string.Format("{0}", BaseUrl)` in a C# one, or sets it with the launch options where the CLI has them, which store that form; after the first link, compares the card's text with the screen's |
|
|
75
|
-
| UI Automation semantic description with a selector variable, `UiPath.UIAutomation.Activities` 26.10.6 | A semantic description holding `{{<Variable>}}` is stored as a `string.Format` expression. Linking writes the same expression into the activity, so a run compiles it. After `object-repository replace-elements` changes that expression, the linked activities keep the old text and a run evaluates the element's new one, which the build never compiled, whether or not the semantic step is enabled: validate and build pass, then the activity fails as it starts with ``SemanticSelectorArgument Expression Activity type 'VisualBasicValue`1 (…)' requires compilation in order to run`` (``CSharpValue`1`` in a C# project) | Writes the semantic description as plain text, naming the varying part in words; a description that keeps a variable is re-linked after every `replace-elements` that changes it |
|
|
76
|
-
| `uip rpa uia target-anchorable update-definition`, `UiPath.UIAutomation.Activities` 26.10.6 and earlier | No `--search-steps`, `enable-steps` or `disable-steps`: the strict selector is set with `--full-selector` and the semantic step added with `--semantic-selector`. `--full-selector` on a fuzzy-only definition makes it strict and leaves the fuzzy selector in the file as residue, as removing a seed's last anchor does | Uses those two options in the calls of [offline-definition-workarounds-guide.md § Order of commands, offline](offline-definition-workarounds-guide.md) step 2, and drops a residue, or a step the user did not ask for, by applying the call again to a fresh copy of the strict seed |
|
|
77
|
-
| UI Automation driver, `UiPath.UIAutomation.Activities` 26.10.4 and earlier | `colName` on a SAP GUI table control's column or cell matches nothing: the search rejects it | Takes the column from `colTooltip`, checked against a live listing, or from `tableCol` |
|
|
65
|
+
| UI Automation screen link with a variable in `Arguments`, `UiPath.UIAutomation.Activities` 26.10.8 | `target-app update-definition` has no option for `Arguments`, so a variable there is written in the seed. The Object Repository screen keeps a plain variable as written, while `link-screen` writes it into the card as `string.Format("{0}", <variable>)`; a run evaluates the screen's copy, which the build never compiled: the card validates and builds, then fails with ``Arguments Expression Activity type 'CSharpValue`1 (<variable>)' requires compilation in order to run`` (``VisualBasicValue`1`` in a VB project) | Writes the variable in the seed as `link-screen` writes it: the `CSharpValue` text `string.Format("{0}", <variable>)` in a C# project, `[string.Format("{0}", <variable>)]` in a VB one |
|
|
66
|
+
| UI Automation element replaced with a changed expression, `UiPath.UIAutomation.Activities` 26.10.8 | A selector variable in an element's selector or semantic description is stored as a `string.Format` expression, and linking writes the same expression into the activity, so a build compiles it. After `object-repository replace-elements` changes that expression, the linked activities keep the old text and a run evaluates the element's new one, which the build never compiled: validate and build pass, then the activity fails as it starts with ``FullSelectorArgument Expression Activity type 'CSharpValue`1 (…)' requires compilation in order to run`` (`SemanticSelectorArgument` for a description; ``VisualBasicValue`1`` in a VB project) | Links every activity linked to the element again after each `replace-elements` that changes an expression in it; writes a semantic description as plain text, naming the varying part in words |
|
|
@@ -28,7 +28,7 @@ How the selector engine reads what a translation writes — properties of the en
|
|
|
28
28
|
|
|
29
29
|
**The selector is XML.** Values are single-quoted, `'` `&` `<` escape the characters that need it, and a repeated attribute on one tag rejects the entire selector. An empty value (`attr=''`) is an active criterion matching only an empty value — to carry an attribute without matching on it, prefix it `omit:`. Beyond `omit:`, `matching:`, `fuzzylevel:` and `casesensitive:` the driver accepts no other modifier, and there is no cap on attributes per tag. The UI Automation activities layer adds one of its own on **fuzzy** selectors and anchors: `check:<attr>='<value>'` (in practice `check:text`), a post-match verification that the resolved element's text equals the value. The fuzzy generator emits it on labels, buttons and anchors and strips it for activities whose text changes at run time (Type Into, Get Text). Preserve it when copying a driver-generated selector; never author it by hand, and never on a Type Into target.
|
|
30
30
|
|
|
31
|
-
**`<nav>`** carries exactly one of `up`, `next`, `prev`,
|
|
31
|
+
**`<nav>`** carries exactly one of `up`, `next`, `prev`, `child`, and never comes first in the full selector; a partial selector may start with one, which then moves from the window its scope matched. It moves through the element tree — the hierarchy a snapshot shows, never screen position — from the node the preceding tag matched: `up='n'` to its n-th ancestor; `next='n'` / `prev='n'` to its n-th following / preceding sibling, hidden ones included; `child='k'` to its k-th child, and `child='-k'` to its k-th child counted from the last (`-1` the last). `up`, `next` and `prev` take a count of at least 1, `child` any count but 0. A control that is a window of its own (a Win32 or WinForms control) has that window as its parent, a level the snapshot does not show: `up='1'` lands on the window, and `next` / `prev` from the control count the window's own children (title bar, scroll bars), so the control beside it is `<nav up='1' /><nav next='1' />` from it, or a `child` of their container. The landed node's tag is not checked. A `<nav>` may end the selector, and the landed node is the target; a tag after it is searched among the landed node's descendants, never the landed node itself. `<nav>` tags chain (`<nav up='1' /><nav next='1' />`). Only the first match of the tag before a `<nav>` is followed: when that path fails the search fails, without trying the tag's other matches, so that tag must be unique in its scope. A step past the first or last sibling or child fails. An empty tag after a node lands on that node's first child of the tag's technology, while `idx` counts matching descendants, not children, so a child position is a `child` step, never an `idx`.
|
|
32
32
|
|
|
33
33
|
## Checking a definition
|
|
34
34
|
|
|
@@ -50,7 +50,8 @@ A throwaway checker has to encode each rule's **scope**, or it reports this guid
|
|
|
50
50
|
| A target scoped to the window a click came from, on an activity that acts after that click opened another window | the workflow + the target spec | 9; desktop: [selector-translation-desktop-guide.md § Rule 9](selector-translation-desktop-guide.md) |
|
|
51
51
|
| `SearchSteps` has `FuzzySelector` and `Anchors` is empty; a definition authored without a live capture carries `Anchors` | definition | 12 |
|
|
52
52
|
| `matching:<a>='fuzzy'` without `fuzzylevel:<a>` | attributes | § Matching semantics |
|
|
53
|
-
| A `matching:<a>='regex'` pattern carried from a source regex that searched, without the `[\s\S]*…[\s\S]*` wrap; an exact caption the source compared whitespace-normalised, written verbatim on
|
|
53
|
+
| A `matching:<a>='regex'` pattern carried from a source regex that searched, without the `[\s\S]*…[\s\S]*` wrap; an exact caption the source compared whitespace-normalised, written verbatim on an attribute the live listing shows padded | attributes + the source criterion + one live attribute listing | 2 |
|
|
54
|
+
| A target carrying only the locator's text, where the source's finder skipped hidden elements, entered frames or shadow roots, or chose by place on screen | attributes + the finder | 17 |
|
|
54
55
|
| Any attribute the node does not expose | live selector evaluator (rejects the selector outright) | 15 |
|
|
55
56
|
| Uniqueness, including invisible twins | live selector evaluator | 15 |
|
|
56
57
|
| The node a `<nav>` path lands on | target validation against the live application | 6, 15 |
|