@appium/fake-driver 6.0.1 → 6.1.0

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.
Files changed (111) hide show
  1. package/build/lib/commands/alert.d.ts +10 -13
  2. package/build/lib/commands/alert.d.ts.map +1 -1
  3. package/build/lib/commands/alert.js +39 -46
  4. package/build/lib/commands/alert.js.map +1 -1
  5. package/build/lib/commands/contexts.d.ts +9 -13
  6. package/build/lib/commands/contexts.d.ts.map +1 -1
  7. package/build/lib/commands/contexts.js +55 -62
  8. package/build/lib/commands/contexts.js.map +1 -1
  9. package/build/lib/commands/element.d.ts +23 -26
  10. package/build/lib/commands/element.d.ts.map +1 -1
  11. package/build/lib/commands/element.js +100 -89
  12. package/build/lib/commands/element.js.map +1 -1
  13. package/build/lib/commands/find.d.ts +14 -17
  14. package/build/lib/commands/find.d.ts.map +1 -1
  15. package/build/lib/commands/find.js +66 -63
  16. package/build/lib/commands/find.js.map +1 -1
  17. package/build/lib/commands/general.d.ts +25 -28
  18. package/build/lib/commands/general.d.ts.map +1 -1
  19. package/build/lib/commands/general.js +90 -75
  20. package/build/lib/commands/general.js.map +1 -1
  21. package/build/lib/desired-caps.d.ts +14 -0
  22. package/build/lib/desired-caps.d.ts.map +1 -0
  23. package/build/lib/desired-caps.js +16 -0
  24. package/build/lib/desired-caps.js.map +1 -0
  25. package/build/lib/doctor/common.d.ts +11 -0
  26. package/build/lib/doctor/common.d.ts.map +1 -0
  27. package/build/lib/doctor/common.js +25 -0
  28. package/build/lib/doctor/common.js.map +1 -0
  29. package/build/lib/doctor/fake1.d.ts +3 -0
  30. package/build/lib/doctor/fake1.d.ts.map +1 -0
  31. package/build/lib/doctor/fake1.js +6 -0
  32. package/build/lib/doctor/fake1.js.map +1 -0
  33. package/build/lib/doctor/fake2.d.ts +3 -0
  34. package/build/lib/doctor/fake2.d.ts.map +1 -0
  35. package/build/lib/doctor/fake2.js +6 -0
  36. package/build/lib/doctor/fake2.js.map +1 -0
  37. package/build/lib/driver.d.ts +128 -156
  38. package/build/lib/driver.d.ts.map +1 -1
  39. package/build/lib/driver.js +146 -154
  40. package/build/lib/driver.js.map +1 -1
  41. package/build/lib/fake-app.d.ts +37 -45
  42. package/build/lib/fake-app.d.ts.map +1 -1
  43. package/build/lib/fake-app.js +61 -38
  44. package/build/lib/fake-app.js.map +1 -1
  45. package/build/lib/fake-driver-schema.d.ts +16 -11
  46. package/build/lib/fake-driver-schema.d.ts.map +1 -1
  47. package/build/lib/fake-driver-schema.js +2 -17
  48. package/build/lib/fake-driver-schema.js.map +1 -1
  49. package/build/lib/fake-element.d.ts +27 -26
  50. package/build/lib/fake-element.d.ts.map +1 -1
  51. package/build/lib/fake-element.js +19 -19
  52. package/build/lib/fake-element.js.map +1 -1
  53. package/build/lib/index.d.ts +2 -3
  54. package/build/lib/index.d.ts.map +1 -1
  55. package/build/lib/index.js +2 -6
  56. package/build/lib/index.js.map +1 -1
  57. package/build/lib/logger.d.ts +1 -2
  58. package/build/lib/logger.d.ts.map +1 -1
  59. package/build/lib/logger.js +2 -2
  60. package/build/lib/logger.js.map +1 -1
  61. package/build/lib/scripts/fake-error.d.ts.map +1 -1
  62. package/build/lib/scripts/fake-error.js.map +1 -1
  63. package/build/lib/scripts/fake-stdin.d.ts.map +1 -1
  64. package/build/lib/scripts/fake-stdin.js.map +1 -1
  65. package/build/lib/scripts/fake-success.d.ts.map +1 -1
  66. package/build/lib/scripts/fake-success.js +3 -6
  67. package/build/lib/scripts/fake-success.js.map +1 -1
  68. package/build/lib/server.d.ts +2 -1
  69. package/build/lib/server.d.ts.map +1 -1
  70. package/build/lib/server.js +3 -5
  71. package/build/lib/server.js.map +1 -1
  72. package/build/lib/types.d.ts +1 -1
  73. package/build/lib/types.d.ts.map +1 -1
  74. package/lib/commands/alert.ts +31 -61
  75. package/lib/commands/contexts.ts +50 -73
  76. package/lib/commands/element.ts +122 -135
  77. package/lib/commands/find.ts +100 -115
  78. package/lib/commands/general.ts +122 -127
  79. package/lib/desired-caps.ts +16 -0
  80. package/lib/doctor/common.ts +26 -0
  81. package/lib/doctor/fake1.ts +3 -0
  82. package/lib/doctor/fake2.ts +3 -0
  83. package/lib/driver.ts +321 -0
  84. package/lib/fake-app.ts +234 -0
  85. package/lib/fake-driver-schema.ts +43 -0
  86. package/lib/fake-element.ts +128 -0
  87. package/lib/{index.js → index.ts} +5 -9
  88. package/lib/logger.ts +3 -0
  89. package/lib/scripts/{fake-success.js → fake-success.ts} +1 -1
  90. package/lib/{server.js → server.ts} +3 -4
  91. package/lib/types.ts +1 -1
  92. package/package.json +10 -14
  93. package/tsconfig.json +2 -1
  94. package/build/lib/commands/index.d.ts +0 -14
  95. package/build/lib/commands/index.d.ts.map +0 -1
  96. package/build/lib/commands/index.js +0 -16
  97. package/build/lib/commands/index.js.map +0 -1
  98. package/build/lib/commands/mixin.d.ts +0 -11
  99. package/build/lib/commands/mixin.d.ts.map +0 -1
  100. package/build/lib/commands/mixin.js +0 -16
  101. package/build/lib/commands/mixin.js.map +0 -1
  102. package/lib/commands/index.ts +0 -14
  103. package/lib/commands/mixin.ts +0 -13
  104. package/lib/driver.js +0 -356
  105. package/lib/fake-app.js +0 -190
  106. package/lib/fake-driver-schema.js +0 -35
  107. package/lib/fake-element.js +0 -117
  108. package/lib/logger.js +0 -5
  109. package/test/fixtures/app.xml +0 -38
  110. /package/lib/scripts/{fake-error.js → fake-error.ts} +0 -0
  111. /package/lib/scripts/{fake-stdin.js → fake-stdin.ts} +0 -0
@@ -1,38 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <app width="400" height="852">
3
- <MockNavBar id="nav" top="1" left="1" width="100" height="100">
4
- <MockTextField id="Mock App" />
5
- </MockNavBar>
6
- <MockWebView id="wv" top="10" left="10.57" width="20.8" height="20.5">
7
- <html>
8
- <head>
9
- <title value="webview title">Test Webview</title>
10
- </head>
11
- <body style="background-color: #000">
12
- <h1>Hello</h1>
13
- <iframe id="1">
14
- <html>
15
- <head>
16
- <title value="iframe title">Test iFrame</title>
17
- </head>
18
- <body>
19
- <h1 style="font-family: 'comic sans'">I'm an iFrame</h1>
20
- </body>
21
- </html>
22
- </iframe>
23
- </body>
24
- </html>
25
- </MockWebView>
26
- <MockListView id="lv" top="15.3" left="20.8" width="30.5" height="2">
27
- <MockListItem id="li" />
28
- <MockListItem id="li" />
29
- <MockListItem />
30
- </MockListView>
31
- <MockInputField id="input" name="TypeMe" />
32
- <MockButton id="Button1" visible="false" enabled="false" />
33
- <MockButton id="Button2" selected="true" />
34
- <MockButton id="AlertButton" showAlert="alert1" />
35
- <MockButton id="AlertButton2" showAlert="alert2" />
36
- <alert id="alert1" text="Fake Alert" hasPrompt="true" />
37
- <alert id="alert2" text="Fake Alert 2" hasPrompt="false" />
38
- </app>
File without changes
File without changes