@react-native-windows/automation 0.2.13 → 0.2.15

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.
@@ -23,19 +23,19 @@ export declare const app: {
23
23
  /**
24
24
  * Find an element by Automation ID
25
25
  *
26
- * https://docs.microsoft.com/en-us/dotnet/api/system.windows.automation.automationelement.automationelementinformation.automationid?view=net-5.0
26
+ * https://docs.microsoft.com/en-us/dotnet/api/system.windows.automation.automationelement.automationelementinformation.automationid?view=net-6.0
27
27
  */
28
28
  findElementByAutomationID: (id: string) => Promise<AutomationElement>;
29
29
  /**
30
30
  * Finds an element by the name of its class name (e.g. ListViewItem)
31
31
  *
32
- * https://docs.microsoft.com/en-us/dotnet/api/system.windows.automation.automationelement.automationelementinformation.classname?view=net-5.0
32
+ * https://docs.microsoft.com/en-us/dotnet/api/system.windows.automation.automationelement.automationelementinformation.classname?view=net-6.0
33
33
  */
34
34
  findElementByClassName: (className: string) => Promise<AutomationElement>;
35
35
  /**
36
36
  * Find element by ControlType (e.g. Button, CheckBox)
37
37
  *
38
- * https://docs.microsoft.com/en-us/dotnet/api/system.windows.automation.controltype?view=net-5.0
38
+ * https://docs.microsoft.com/en-us/dotnet/api/system.windows.automation.controltype?view=net-6.0
39
39
  */
40
40
  findElementByControlType: (controlType: string) => Promise<AutomationElement>;
41
41
  /**
@@ -18,19 +18,19 @@ exports.app = {
18
18
  /**
19
19
  * Find an element by Automation ID
20
20
  *
21
- * https://docs.microsoft.com/en-us/dotnet/api/system.windows.automation.automationelement.automationelementinformation.automationid?view=net-5.0
21
+ * https://docs.microsoft.com/en-us/dotnet/api/system.windows.automation.automationelement.automationelementinformation.automationid?view=net-6.0
22
22
  */
23
23
  findElementByAutomationID: (id) => $(`~${id}`),
24
24
  /**
25
25
  * Finds an element by the name of its class name (e.g. ListViewItem)
26
26
  *
27
- * https://docs.microsoft.com/en-us/dotnet/api/system.windows.automation.automationelement.automationelementinformation.classname?view=net-5.0
27
+ * https://docs.microsoft.com/en-us/dotnet/api/system.windows.automation.automationelement.automationelementinformation.classname?view=net-6.0
28
28
  */
29
29
  findElementByClassName: (className) => $(className),
30
30
  /**
31
31
  * Find element by ControlType (e.g. Button, CheckBox)
32
32
  *
33
- * https://docs.microsoft.com/en-us/dotnet/api/system.windows.automation.controltype?view=net-5.0
33
+ * https://docs.microsoft.com/en-us/dotnet/api/system.windows.automation.controltype?view=net-6.0
34
34
  */
35
35
  findElementByControlType: (controlType) => $(`<${controlType} />`),
36
36
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"AutomationClient.js","sourceRoot":"","sources":["../src/AutomationClient.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAqCH;;GAEG;AACU,QAAA,GAAG,GAAG;IACjB;;OAEG;IACH,mBAAmB,EAAE,CAAC,EAAU,EAA8B,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;IAE5E;;;;OAIG;IACH,yBAAyB,EAAE,CAAC,EAAU,EAA8B,EAAE,CACpE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;IAEb;;;;OAIG;IACH,sBAAsB,EAAE,CAAC,SAAiB,EAA8B,EAAE,CACxE,CAAC,CAAC,SAAS,CAAC;IAEd;;;;OAIG;IACH,wBAAwB,EAAE,CAAC,WAAmB,EAA8B,EAAE,CAC5E,CAAC,CAAC,IAAI,WAAW,KAAK,CAAC;IAEzB;;OAEG;IACH,kBAAkB,EAAE,CAAC,KAAa,EAA8B,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;IAE3E;;OAEG;IACH,aAAa,EAAE,CAAC,KAAa,EAAE,MAAc,EAAE,EAAE,CAC/C,OAAO,CAAC,aAAa,CAAC,KAAK,EAAE,MAAM,CAAC;IAEtC;;OAEG;IACH,iBAAiB,EAAE,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC;IAE5E;;OAEG;IACH,iBAAiB,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,iBAAiB,EAAE;IAEpD;;OAEG;IACH,aAAa,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,aAAa,EAAE;IAE5C;;OAEG;IACH,YAAY,EAAE,CAAC,YAA6B,EAAE,EAAE,CAC9C,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC;IAEpC;;;OAGG;IACH,SAAS,EAAE,CACT,SAAiC,EACjC,OAAsC,EACtC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,SAAS,EAAE,OAAO,CAAC;CAC3C,CAAC","sourcesContent":["/**\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * @format\n */\n\n/* global $:false, browser:false */\n\n/**\n * Projection of a WebDriver Element, with functions corresponding to supported\n * WinAppDriver APIs.\n *\n * See https://github.com/microsoft/WinAppDriver/blob/master/Docs/SupportedAPIs.md\n */\nexport type AutomationElement = Pick<\n WebdriverIO.Element,\n | 'addValue'\n | 'clearValue'\n | 'click'\n | 'doubleClick'\n | 'findElements'\n | 'getAttribute'\n | 'getLocation'\n | 'getSize'\n | 'getText'\n | 'getValue'\n | 'isDisplayed'\n | 'isDisplayedInViewport'\n | 'isEnabled'\n | 'isEqual'\n | 'isSelected'\n | 'moveTo'\n | 'saveScreenshot'\n | 'sendKeys'\n | 'selectByVisibleText'\n | 'setValue'\n | 'touchAction'\n | 'waitForDisplayed'\n | 'waitForExist'\n>;\n\n/**\n * A subset of WebDriver functionality that will work with Windows applications\n */\nexport const app = {\n /**\n * Find an element by testID property\n */\n findElementByTestID: (id: string): Promise<AutomationElement> => $(`~${id}`),\n\n /**\n * Find an element by Automation ID\n *\n * https://docs.microsoft.com/en-us/dotnet/api/system.windows.automation.automationelement.automationelementinformation.automationid?view=net-5.0\n */\n findElementByAutomationID: (id: string): Promise<AutomationElement> =>\n $(`~${id}`),\n\n /**\n * Finds an element by the name of its class name (e.g. ListViewItem)\n *\n * https://docs.microsoft.com/en-us/dotnet/api/system.windows.automation.automationelement.automationelementinformation.classname?view=net-5.0\n */\n findElementByClassName: (className: string): Promise<AutomationElement> =>\n $(className),\n\n /**\n * Find element by ControlType (e.g. Button, CheckBox)\n *\n * https://docs.microsoft.com/en-us/dotnet/api/system.windows.automation.controltype?view=net-5.0\n */\n findElementByControlType: (controlType: string): Promise<AutomationElement> =>\n $(`<${controlType} />`),\n\n /**\n * Find element by a WinAppDriver compatible XPath Selector (e.g. '//Button[@AutomationId=\\\"MoreButton\\\"]')\n */\n findElementByXPath: (xpath: string): Promise<AutomationElement> => $(xpath),\n\n /**\n * Resizes app window outer size according to provided width and height.\n */\n setWindowSize: (width: number, height: number) =>\n browser.setWindowSize(width, height),\n\n /**\n * Change the position of the current focussed window.\n */\n setWindowPosition: (x: number, y: number) => browser.setWindowPosition(x, y),\n\n /**\n * Get the position of the current focussed window.\n */\n getWindowPosition: () => browser.getWindowPosition(),\n\n /**\n * Returns app window size.\n */\n getWindowSize: () => browser.getWindowSize(),\n\n /**\n * Switch focus to a particular window.\n */\n switchWindow: (titleToMatch: string | RegExp) =>\n browser.switchWindow(titleToMatch),\n\n /**\n * This wait command is your universal weapon if you want to wait on something. It expects a condition\n * and waits until that condition is fulfilled with a truthy value.\n */\n waitUntil: (\n condition: () => Promise<boolean>,\n options?: WebdriverIO.WaitUntilOptions,\n ) => browser.waitUntil(condition, options),\n};\n"]}
1
+ {"version":3,"file":"AutomationClient.js","sourceRoot":"","sources":["../src/AutomationClient.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAqCH;;GAEG;AACU,QAAA,GAAG,GAAG;IACjB;;OAEG;IACH,mBAAmB,EAAE,CAAC,EAAU,EAA8B,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;IAE5E;;;;OAIG;IACH,yBAAyB,EAAE,CAAC,EAAU,EAA8B,EAAE,CACpE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;IAEb;;;;OAIG;IACH,sBAAsB,EAAE,CAAC,SAAiB,EAA8B,EAAE,CACxE,CAAC,CAAC,SAAS,CAAC;IAEd;;;;OAIG;IACH,wBAAwB,EAAE,CAAC,WAAmB,EAA8B,EAAE,CAC5E,CAAC,CAAC,IAAI,WAAW,KAAK,CAAC;IAEzB;;OAEG;IACH,kBAAkB,EAAE,CAAC,KAAa,EAA8B,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;IAE3E;;OAEG;IACH,aAAa,EAAE,CAAC,KAAa,EAAE,MAAc,EAAE,EAAE,CAC/C,OAAO,CAAC,aAAa,CAAC,KAAK,EAAE,MAAM,CAAC;IAEtC;;OAEG;IACH,iBAAiB,EAAE,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC;IAE5E;;OAEG;IACH,iBAAiB,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,iBAAiB,EAAE;IAEpD;;OAEG;IACH,aAAa,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,aAAa,EAAE;IAE5C;;OAEG;IACH,YAAY,EAAE,CAAC,YAA6B,EAAE,EAAE,CAC9C,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC;IAEpC;;;OAGG;IACH,SAAS,EAAE,CACT,SAAiC,EACjC,OAAsC,EACtC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,SAAS,EAAE,OAAO,CAAC;CAC3C,CAAC","sourcesContent":["/**\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * @format\n */\n\n/* global $:false, browser:false */\n\n/**\n * Projection of a WebDriver Element, with functions corresponding to supported\n * WinAppDriver APIs.\n *\n * See https://github.com/microsoft/WinAppDriver/blob/master/Docs/SupportedAPIs.md\n */\nexport type AutomationElement = Pick<\n WebdriverIO.Element,\n | 'addValue'\n | 'clearValue'\n | 'click'\n | 'doubleClick'\n | 'findElements'\n | 'getAttribute'\n | 'getLocation'\n | 'getSize'\n | 'getText'\n | 'getValue'\n | 'isDisplayed'\n | 'isDisplayedInViewport'\n | 'isEnabled'\n | 'isEqual'\n | 'isSelected'\n | 'moveTo'\n | 'saveScreenshot'\n | 'sendKeys'\n | 'selectByVisibleText'\n | 'setValue'\n | 'touchAction'\n | 'waitForDisplayed'\n | 'waitForExist'\n>;\n\n/**\n * A subset of WebDriver functionality that will work with Windows applications\n */\nexport const app = {\n /**\n * Find an element by testID property\n */\n findElementByTestID: (id: string): Promise<AutomationElement> => $(`~${id}`),\n\n /**\n * Find an element by Automation ID\n *\n * https://docs.microsoft.com/en-us/dotnet/api/system.windows.automation.automationelement.automationelementinformation.automationid?view=net-6.0\n */\n findElementByAutomationID: (id: string): Promise<AutomationElement> =>\n $(`~${id}`),\n\n /**\n * Finds an element by the name of its class name (e.g. ListViewItem)\n *\n * https://docs.microsoft.com/en-us/dotnet/api/system.windows.automation.automationelement.automationelementinformation.classname?view=net-6.0\n */\n findElementByClassName: (className: string): Promise<AutomationElement> =>\n $(className),\n\n /**\n * Find element by ControlType (e.g. Button, CheckBox)\n *\n * https://docs.microsoft.com/en-us/dotnet/api/system.windows.automation.controltype?view=net-6.0\n */\n findElementByControlType: (controlType: string): Promise<AutomationElement> =>\n $(`<${controlType} />`),\n\n /**\n * Find element by a WinAppDriver compatible XPath Selector (e.g. '//Button[@AutomationId=\\\"MoreButton\\\"]')\n */\n findElementByXPath: (xpath: string): Promise<AutomationElement> => $(xpath),\n\n /**\n * Resizes app window outer size according to provided width and height.\n */\n setWindowSize: (width: number, height: number) =>\n browser.setWindowSize(width, height),\n\n /**\n * Change the position of the current focussed window.\n */\n setWindowPosition: (x: number, y: number) => browser.setWindowPosition(x, y),\n\n /**\n * Get the position of the current focussed window.\n */\n getWindowPosition: () => browser.getWindowPosition(),\n\n /**\n * Returns app window size.\n */\n getWindowSize: () => browser.getWindowSize(),\n\n /**\n * Switch focus to a particular window.\n */\n switchWindow: (titleToMatch: string | RegExp) =>\n browser.switchWindow(titleToMatch),\n\n /**\n * This wait command is your universal weapon if you want to wait on something. It expects a condition\n * and waits until that condition is fulfilled with a truthy value.\n */\n waitUntil: (\n condition: () => Promise<boolean>,\n options?: WebdriverIO.WaitUntilOptions,\n ) => browser.waitUntil(condition, options),\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-windows/automation",
3
- "version": "0.2.13",
3
+ "version": "0.2.15",
4
4
  "description": "UI Automation Suite for React Native Windows Applications",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "repository": "https://github.com/microsoft/react-native-windows",
@@ -14,7 +14,7 @@
14
14
  "watch": "rnw-scripts watch"
15
15
  },
16
16
  "dependencies": {
17
- "@react-native-windows/automation-channel": "^0.4.2",
17
+ "@react-native-windows/automation-channel": "^0.4.4",
18
18
  "@react-native-windows/fs": "^0.0.0-canary.7",
19
19
  "@typescript-eslint/eslint-plugin": "^5.30.5",
20
20
  "@typescript-eslint/parser": "^5.30.5",