Skip to content

Commit

Permalink
refactor: adapt API docs of clickText() to new API (#APD-483)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesDienst-askui committed Jun 18, 2024
1 parent f387295 commit 74d4597
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/askui-nodejs/src/execution/ui-control-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -576,15 +576,15 @@ export class UiControlClient extends ApiCommands {
* **Examples:**
* ```typescript
* // Click text that matches exactly
* await aui.clickText({text: 'askui', type: 'similar'})
* await aui.clickText({text: 'askui', matching: 'similar'})
*
* // Click text that contains 'pie' or 'cake' or 'Pie' or 'Cake'
* await aui.clickText({text: '.*([Pp]ie|[Cc]ake).*', type: 'regex'})
* await aui.clickText({text: '.*([Pp]ie|[Cc]ake).*', matching: 'regex'})
*
* // Click the text 'TERMINAL' that is left of the text 'Ports'
* await aui.clickText({
* text: 'TERMINAL',
* type: "exact",
* matching: "exact",
* relation: { type: 'leftOf', text: 'PORTS' }
* })
* ```
Expand All @@ -593,7 +593,7 @@ export class UiControlClient extends ApiCommands {
* for regular expression matching and relation.
* @property {string} params.text - The text to be clicked.
* @property {string} params.matching - Whether the text is matched using similarity,
* exact match or a regular expression.
* exact match or a regular expression.
* @property {Object} params.relation - Object describing the relationship between the
* clicked text and another element.
* @property {RelationsForConvenienceMethods} params.relation.type - The type of relation.
Expand Down Expand Up @@ -683,7 +683,7 @@ export class UiControlClient extends ApiCommands {
* @property {string} params.type - The type of the element: 'otherElement' | 'switch' |
* 'element' | 'container' | 'checkbox' | 'element' |
* 'button' | 'table' | 'text' | 'icon' | 'image' | 'textfield'
* @property {Object} params.text - Object containing value and matching strategy
* @property {Object} params.text - Object containing value and matching strategy.
* @property {string} params.text.value - The text to match for.
* @property {string} params.text.matching - Whether the text is matched using similarity,
* exact match or a regular expression.
Expand Down

0 comments on commit 74d4597

Please sign in to comment.