cddl2java 0.0.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 (507) hide show
  1. package/.release-it.ts +10 -0
  2. package/README.md +28 -0
  3. package/bin/cddl2java.js +5 -0
  4. package/build/cli.d.ts +2 -0
  5. package/build/cli.d.ts.map +1 -0
  6. package/build/cli.js +36 -0
  7. package/build/constants.d.ts +4 -0
  8. package/build/constants.d.ts.map +1 -0
  9. package/build/constants.js +22 -0
  10. package/build/index.d.ts +2 -0
  11. package/build/index.d.ts.map +1 -0
  12. package/build/index.js +656 -0
  13. package/build/templates.d.ts +10 -0
  14. package/build/templates.d.ts.map +1 -0
  15. package/build/templates.js +252 -0
  16. package/build/utils.d.ts +11 -0
  17. package/build/utils.d.ts.map +1 -0
  18. package/build/utils.js +17 -0
  19. package/package.json +41 -0
  20. package/src/cli.ts +42 -0
  21. package/src/constants.ts +25 -0
  22. package/src/index.ts +731 -0
  23. package/src/templates.ts +258 -0
  24. package/src/utils.ts +23 -0
  25. package/tests/__fixtures__/AccessibilityValue.java +71 -0
  26. package/tests/__fixtures__/Browser/BrowserModule.java +34 -0
  27. package/tests/__fixtures__/Browser/ClientWindowInfo.java +122 -0
  28. package/tests/__fixtures__/Browser/ClientWindowNamedState.java +50 -0
  29. package/tests/__fixtures__/Browser/ClientWindowRectState.java +98 -0
  30. package/tests/__fixtures__/Browser/CreateUserContextResult.java +16 -0
  31. package/tests/__fixtures__/Browser/GetClientWindowsResult.java +50 -0
  32. package/tests/__fixtures__/Browser/GetUserContextsResult.java +50 -0
  33. package/tests/__fixtures__/Browser/RemoveUserContextParameters.java +50 -0
  34. package/tests/__fixtures__/Browser/SetClientWindowStateParameters.java +50 -0
  35. package/tests/__fixtures__/Browser/UserContextInfo.java +50 -0
  36. package/tests/__fixtures__/BrowsingContext/AccessibilityLocator.java +62 -0
  37. package/tests/__fixtures__/BrowsingContext/ActivateParameters.java +50 -0
  38. package/tests/__fixtures__/BrowsingContext/BaseNavigationInfo.java +86 -0
  39. package/tests/__fixtures__/BrowsingContext/BoxClipRectangle.java +98 -0
  40. package/tests/__fixtures__/BrowsingContext/BrowsingContextModule.java +34 -0
  41. package/tests/__fixtures__/BrowsingContext/CaptureScreenshotParameters.java +86 -0
  42. package/tests/__fixtures__/BrowsingContext/CaptureScreenshotResult.java +50 -0
  43. package/tests/__fixtures__/BrowsingContext/ClipRectangle.java +17 -0
  44. package/tests/__fixtures__/BrowsingContext/CloseParameters.java +62 -0
  45. package/tests/__fixtures__/BrowsingContext/ContextLocator.java +62 -0
  46. package/tests/__fixtures__/BrowsingContext/CreateParameters.java +86 -0
  47. package/tests/__fixtures__/BrowsingContext/CreateResult.java +50 -0
  48. package/tests/__fixtures__/BrowsingContext/CreateType.java +35 -0
  49. package/tests/__fixtures__/BrowsingContext/CssLocator.java +62 -0
  50. package/tests/__fixtures__/BrowsingContext/DownloadWillBeginParams.java +50 -0
  51. package/tests/__fixtures__/BrowsingContext/ElementClipRectangle.java +62 -0
  52. package/tests/__fixtures__/BrowsingContext/GetTreeParameters.java +62 -0
  53. package/tests/__fixtures__/BrowsingContext/GetTreeResult.java +50 -0
  54. package/tests/__fixtures__/BrowsingContext/HandleUserPromptParameters.java +74 -0
  55. package/tests/__fixtures__/BrowsingContext/HistoryUpdatedParameters.java +62 -0
  56. package/tests/__fixtures__/BrowsingContext/ImageFormat.java +62 -0
  57. package/tests/__fixtures__/BrowsingContext/Info.java +122 -0
  58. package/tests/__fixtures__/BrowsingContext/InnerTextLocator.java +98 -0
  59. package/tests/__fixtures__/BrowsingContext/LocateNodesParameters.java +98 -0
  60. package/tests/__fixtures__/BrowsingContext/LocateNodesResult.java +50 -0
  61. package/tests/__fixtures__/BrowsingContext/Locator.java +20 -0
  62. package/tests/__fixtures__/BrowsingContext/NavigateParameters.java +74 -0
  63. package/tests/__fixtures__/BrowsingContext/NavigateResult.java +62 -0
  64. package/tests/__fixtures__/BrowsingContext/PrintMarginParameters.java +86 -0
  65. package/tests/__fixtures__/BrowsingContext/PrintPageParameters.java +62 -0
  66. package/tests/__fixtures__/BrowsingContext/PrintParameters.java +134 -0
  67. package/tests/__fixtures__/BrowsingContext/PrintResult.java +50 -0
  68. package/tests/__fixtures__/BrowsingContext/ReadinessState.java +36 -0
  69. package/tests/__fixtures__/BrowsingContext/ReloadParameters.java +74 -0
  70. package/tests/__fixtures__/BrowsingContext/SetViewportParameters.java +86 -0
  71. package/tests/__fixtures__/BrowsingContext/TraverseHistoryParameters.java +62 -0
  72. package/tests/__fixtures__/BrowsingContext/TraverseHistoryResult.java +28 -0
  73. package/tests/__fixtures__/BrowsingContext/UserPromptClosedParameters.java +86 -0
  74. package/tests/__fixtures__/BrowsingContext/UserPromptOpenedParameters.java +98 -0
  75. package/tests/__fixtures__/BrowsingContext/UserPromptType.java +37 -0
  76. package/tests/__fixtures__/BrowsingContext/Viewport.java +62 -0
  77. package/tests/__fixtures__/BrowsingContext/XPathLocator.java +62 -0
  78. package/tests/__fixtures__/ContextValue.java +55 -0
  79. package/tests/__fixtures__/EmptyResult.java +21 -0
  80. package/tests/__fixtures__/Emulation/EmulationModule.java +34 -0
  81. package/tests/__fixtures__/Emulation/GeolocationCoordinates.java +122 -0
  82. package/tests/__fixtures__/Emulation/SetGeolocationOverrideParameters.java +74 -0
  83. package/tests/__fixtures__/Input/ElementOrigin.java +62 -0
  84. package/tests/__fixtures__/Input/FileDialogInfo.java +74 -0
  85. package/tests/__fixtures__/Input/InputModule.java +34 -0
  86. package/tests/__fixtures__/Input/KeyDownAction.java +62 -0
  87. package/tests/__fixtures__/Input/KeySourceAction.java +18 -0
  88. package/tests/__fixtures__/Input/KeySourceActions.java +74 -0
  89. package/tests/__fixtures__/Input/KeyUpAction.java +62 -0
  90. package/tests/__fixtures__/Input/NoneSourceAction.java +16 -0
  91. package/tests/__fixtures__/Input/NoneSourceActions.java +74 -0
  92. package/tests/__fixtures__/Input/Origin.java +36 -0
  93. package/tests/__fixtures__/Input/PauseAction.java +62 -0
  94. package/tests/__fixtures__/Input/PerformActionsParameters.java +62 -0
  95. package/tests/__fixtures__/Input/PointerCommonProperties.java +122 -0
  96. package/tests/__fixtures__/Input/PointerDownAction.java +62 -0
  97. package/tests/__fixtures__/Input/PointerMoveAction.java +98 -0
  98. package/tests/__fixtures__/Input/PointerParameters.java +50 -0
  99. package/tests/__fixtures__/Input/PointerSourceAction.java +19 -0
  100. package/tests/__fixtures__/Input/PointerSourceActions.java +86 -0
  101. package/tests/__fixtures__/Input/PointerType.java +36 -0
  102. package/tests/__fixtures__/Input/PointerUpAction.java +62 -0
  103. package/tests/__fixtures__/Input/ReleaseActionsParameters.java +50 -0
  104. package/tests/__fixtures__/Input/SetFilesParameters.java +74 -0
  105. package/tests/__fixtures__/Input/SourceActions.java +19 -0
  106. package/tests/__fixtures__/Input/WheelScrollAction.java +122 -0
  107. package/tests/__fixtures__/Input/WheelSourceAction.java +17 -0
  108. package/tests/__fixtures__/Input/WheelSourceActions.java +74 -0
  109. package/tests/__fixtures__/Log/BaseLogEntry.java +98 -0
  110. package/tests/__fixtures__/Log/ConsoleLogEntry.java +74 -0
  111. package/tests/__fixtures__/Log/Entry.java +18 -0
  112. package/tests/__fixtures__/Log/GenericLogEntry.java +50 -0
  113. package/tests/__fixtures__/Log/JavascriptLogEntry.java +50 -0
  114. package/tests/__fixtures__/Log/Level.java +37 -0
  115. package/tests/__fixtures__/Log/LogModule.java +34 -0
  116. package/tests/__fixtures__/Network/AddInterceptParameters.java +74 -0
  117. package/tests/__fixtures__/Network/AddInterceptResult.java +50 -0
  118. package/tests/__fixtures__/Network/AuthChallenge.java +62 -0
  119. package/tests/__fixtures__/Network/AuthCredentials.java +74 -0
  120. package/tests/__fixtures__/Network/AuthRequiredParameters.java +50 -0
  121. package/tests/__fixtures__/Network/Base64Value.java +62 -0
  122. package/tests/__fixtures__/Network/BaseParameters.java +122 -0
  123. package/tests/__fixtures__/Network/BeforeRequestSentParameters.java +50 -0
  124. package/tests/__fixtures__/Network/BytesValue.java +17 -0
  125. package/tests/__fixtures__/Network/ContinueRequestParameters.java +110 -0
  126. package/tests/__fixtures__/Network/ContinueResponseParameters.java +110 -0
  127. package/tests/__fixtures__/Network/ContinueWithAuthCredentials.java +62 -0
  128. package/tests/__fixtures__/Network/ContinueWithAuthNoCredentials.java +50 -0
  129. package/tests/__fixtures__/Network/ContinueWithAuthParameters.java +50 -0
  130. package/tests/__fixtures__/Network/Cookie.java +146 -0
  131. package/tests/__fixtures__/Network/CookieHeader.java +62 -0
  132. package/tests/__fixtures__/Network/FailRequestParameters.java +50 -0
  133. package/tests/__fixtures__/Network/FetchErrorParameters.java +50 -0
  134. package/tests/__fixtures__/Network/FetchTimingInfo.java +194 -0
  135. package/tests/__fixtures__/Network/Header.java +62 -0
  136. package/tests/__fixtures__/Network/Initiator.java +98 -0
  137. package/tests/__fixtures__/Network/InterceptPhase.java +36 -0
  138. package/tests/__fixtures__/Network/NetworkModule.java +34 -0
  139. package/tests/__fixtures__/Network/ProvideResponseParameters.java +110 -0
  140. package/tests/__fixtures__/Network/RemoveInterceptParameters.java +50 -0
  141. package/tests/__fixtures__/Network/RequestData.java +158 -0
  142. package/tests/__fixtures__/Network/ResponseCompletedParameters.java +50 -0
  143. package/tests/__fixtures__/Network/ResponseContent.java +50 -0
  144. package/tests/__fixtures__/Network/ResponseData.java +182 -0
  145. package/tests/__fixtures__/Network/ResponseStartedParameters.java +50 -0
  146. package/tests/__fixtures__/Network/SameSite.java +36 -0
  147. package/tests/__fixtures__/Network/SetCacheBehaviorParameters.java +62 -0
  148. package/tests/__fixtures__/Network/SetCookieHeader.java +146 -0
  149. package/tests/__fixtures__/Network/StringValue.java +62 -0
  150. package/tests/__fixtures__/Network/UrlPattern.java +17 -0
  151. package/tests/__fixtures__/Network/UrlPatternPattern.java +110 -0
  152. package/tests/__fixtures__/Network/UrlPatternString.java +62 -0
  153. package/tests/__fixtures__/Script/AddPreloadScriptParameters.java +98 -0
  154. package/tests/__fixtures__/Script/AddPreloadScriptResult.java +50 -0
  155. package/tests/__fixtures__/Script/ArrayBufferRemoteValue.java +74 -0
  156. package/tests/__fixtures__/Script/ArrayLocalValue.java +62 -0
  157. package/tests/__fixtures__/Script/ArrayRemoteValue.java +86 -0
  158. package/tests/__fixtures__/Script/AudioWorkletRealmInfo.java +50 -0
  159. package/tests/__fixtures__/Script/BaseRealmInfo.java +62 -0
  160. package/tests/__fixtures__/Script/BigIntValue.java +62 -0
  161. package/tests/__fixtures__/Script/BooleanValue.java +62 -0
  162. package/tests/__fixtures__/Script/CallFunctionParameters.java +134 -0
  163. package/tests/__fixtures__/Script/ChannelProperties.java +74 -0
  164. package/tests/__fixtures__/Script/ChannelValue.java +62 -0
  165. package/tests/__fixtures__/Script/ContextTarget.java +62 -0
  166. package/tests/__fixtures__/Script/DateLocalValue.java +62 -0
  167. package/tests/__fixtures__/Script/DedicatedWorkerRealmInfo.java +62 -0
  168. package/tests/__fixtures__/Script/DisownParameters.java +62 -0
  169. package/tests/__fixtures__/Script/ErrorRemoteValue.java +74 -0
  170. package/tests/__fixtures__/Script/EvaluateParameters.java +110 -0
  171. package/tests/__fixtures__/Script/EvaluateResult.java +17 -0
  172. package/tests/__fixtures__/Script/EvaluateResultException.java +74 -0
  173. package/tests/__fixtures__/Script/EvaluateResultSuccess.java +74 -0
  174. package/tests/__fixtures__/Script/ExceptionDetails.java +98 -0
  175. package/tests/__fixtures__/Script/FunctionRemoteValue.java +74 -0
  176. package/tests/__fixtures__/Script/GeneratorRemoteValue.java +74 -0
  177. package/tests/__fixtures__/Script/GetRealmsParameters.java +62 -0
  178. package/tests/__fixtures__/Script/GetRealmsResult.java +50 -0
  179. package/tests/__fixtures__/Script/HTMLCollectionRemoteValue.java +86 -0
  180. package/tests/__fixtures__/Script/LocalValue.java +24 -0
  181. package/tests/__fixtures__/Script/MapLocalValue.java +62 -0
  182. package/tests/__fixtures__/Script/MapRemoteValue.java +86 -0
  183. package/tests/__fixtures__/Script/MessageParameters.java +74 -0
  184. package/tests/__fixtures__/Script/NodeListRemoteValue.java +86 -0
  185. package/tests/__fixtures__/Script/NodeProperties.java +146 -0
  186. package/tests/__fixtures__/Script/NodeRemoteValue.java +98 -0
  187. package/tests/__fixtures__/Script/NullValue.java +50 -0
  188. package/tests/__fixtures__/Script/NumberValue.java +62 -0
  189. package/tests/__fixtures__/Script/ObjectLocalValue.java +62 -0
  190. package/tests/__fixtures__/Script/ObjectRemoteValue.java +86 -0
  191. package/tests/__fixtures__/Script/PaintWorkletRealmInfo.java +50 -0
  192. package/tests/__fixtures__/Script/PrimitiveProtocolValue.java +21 -0
  193. package/tests/__fixtures__/Script/PromiseRemoteValue.java +74 -0
  194. package/tests/__fixtures__/Script/ProxyRemoteValue.java +74 -0
  195. package/tests/__fixtures__/Script/RealmDestroyedParameters.java +50 -0
  196. package/tests/__fixtures__/Script/RealmInfo.java +23 -0
  197. package/tests/__fixtures__/Script/RealmTarget.java +50 -0
  198. package/tests/__fixtures__/Script/RealmType.java +41 -0
  199. package/tests/__fixtures__/Script/RegExpLocalValue.java +62 -0
  200. package/tests/__fixtures__/Script/RegExpValue.java +62 -0
  201. package/tests/__fixtures__/Script/RemoteObjectReference.java +62 -0
  202. package/tests/__fixtures__/Script/RemoteReference.java +17 -0
  203. package/tests/__fixtures__/Script/RemoteValue.java +36 -0
  204. package/tests/__fixtures__/Script/RemovePreloadScriptParameters.java +50 -0
  205. package/tests/__fixtures__/Script/ResultOwnership.java +35 -0
  206. package/tests/__fixtures__/Script/ScriptModule.java +34 -0
  207. package/tests/__fixtures__/Script/SerializationOptions.java +74 -0
  208. package/tests/__fixtures__/Script/ServiceWorkerRealmInfo.java +50 -0
  209. package/tests/__fixtures__/Script/SetLocalValue.java +62 -0
  210. package/tests/__fixtures__/Script/SetRemoteValue.java +86 -0
  211. package/tests/__fixtures__/Script/SharedReference.java +62 -0
  212. package/tests/__fixtures__/Script/SharedWorkerRealmInfo.java +50 -0
  213. package/tests/__fixtures__/Script/Source.java +62 -0
  214. package/tests/__fixtures__/Script/SpecialNumber.java +37 -0
  215. package/tests/__fixtures__/Script/StackFrame.java +86 -0
  216. package/tests/__fixtures__/Script/StackTrace.java +50 -0
  217. package/tests/__fixtures__/Script/StringValue.java +62 -0
  218. package/tests/__fixtures__/Script/SymbolRemoteValue.java +74 -0
  219. package/tests/__fixtures__/Script/Target.java +17 -0
  220. package/tests/__fixtures__/Script/TypedArrayRemoteValue.java +74 -0
  221. package/tests/__fixtures__/Script/UndefinedValue.java +50 -0
  222. package/tests/__fixtures__/Script/WeakMapRemoteValue.java +74 -0
  223. package/tests/__fixtures__/Script/WeakSetRemoteValue.java +74 -0
  224. package/tests/__fixtures__/Script/WindowProxyProperties.java +50 -0
  225. package/tests/__fixtures__/Script/WindowProxyRemoteValue.java +86 -0
  226. package/tests/__fixtures__/Script/WindowRealmInfo.java +74 -0
  227. package/tests/__fixtures__/Script/WorkerRealmInfo.java +50 -0
  228. package/tests/__fixtures__/Script/WorkletRealmInfo.java +50 -0
  229. package/tests/__fixtures__/Session/Capabilities.java +55 -0
  230. package/tests/__fixtures__/Session/CapabilitiesRequest.java +62 -0
  231. package/tests/__fixtures__/Session/CapabilityRequest.java +110 -0
  232. package/tests/__fixtures__/Session/NewParameters.java +50 -0
  233. package/tests/__fixtures__/Session/NewResult.java +62 -0
  234. package/tests/__fixtures__/Session/ProxyConfiguration.java +20 -0
  235. package/tests/__fixtures__/Session/SessionModule.java +34 -0
  236. package/tests/__fixtures__/Session/StatusResult.java +62 -0
  237. package/tests/__fixtures__/Session/SubscribeResult.java +50 -0
  238. package/tests/__fixtures__/Session/SubscriptionRequest.java +74 -0
  239. package/tests/__fixtures__/Session/UnsubscribeByAttributesRequest.java +62 -0
  240. package/tests/__fixtures__/Session/UnsubscribeByIDRequest.java +50 -0
  241. package/tests/__fixtures__/Session/UnsubscribeParameters.java +17 -0
  242. package/tests/__fixtures__/Session/UserPromptHandler.java +110 -0
  243. package/tests/__fixtures__/Session/UserPromptHandlerType.java +36 -0
  244. package/tests/__fixtures__/Storage/BrowsingContextPartitionDescriptor.java +62 -0
  245. package/tests/__fixtures__/Storage/CookieFilter.java +146 -0
  246. package/tests/__fixtures__/Storage/DeleteCookiesParameters.java +62 -0
  247. package/tests/__fixtures__/Storage/DeleteCookiesResult.java +50 -0
  248. package/tests/__fixtures__/Storage/GetCookiesParameters.java +62 -0
  249. package/tests/__fixtures__/Storage/GetCookiesResult.java +62 -0
  250. package/tests/__fixtures__/Storage/PartialCookie.java +134 -0
  251. package/tests/__fixtures__/Storage/PartitionDescriptor.java +17 -0
  252. package/tests/__fixtures__/Storage/PartitionKey.java +62 -0
  253. package/tests/__fixtures__/Storage/SetCookieParameters.java +62 -0
  254. package/tests/__fixtures__/Storage/SetCookieResult.java +50 -0
  255. package/tests/__fixtures__/Storage/StorageKeyPartitionDescriptor.java +74 -0
  256. package/tests/__fixtures__/Storage/StorageModule.java +34 -0
  257. package/tests/__fixtures__/WebExtension/ExtensionArchivePath.java +62 -0
  258. package/tests/__fixtures__/WebExtension/ExtensionBase64Encoded.java +62 -0
  259. package/tests/__fixtures__/WebExtension/ExtensionData.java +18 -0
  260. package/tests/__fixtures__/WebExtension/ExtensionPath.java +62 -0
  261. package/tests/__fixtures__/WebExtension/InstallParameters.java +50 -0
  262. package/tests/__fixtures__/WebExtension/InstallResult.java +50 -0
  263. package/tests/__fixtures__/WebExtension/UninstallParameters.java +50 -0
  264. package/tests/__fixtures__/WebExtension/WebExtensionModule.java +34 -0
  265. package/tests/__output__/AccessibilityValue.java +71 -0
  266. package/tests/__output__/Browser/BrowserModule.java +34 -0
  267. package/tests/__output__/Browser/ClientWindowInfo.java +122 -0
  268. package/tests/__output__/Browser/ClientWindowNamedState.java +50 -0
  269. package/tests/__output__/Browser/ClientWindowRectState.java +98 -0
  270. package/tests/__output__/Browser/CreateUserContextResult.java +16 -0
  271. package/tests/__output__/Browser/GetClientWindowsResult.java +50 -0
  272. package/tests/__output__/Browser/GetUserContextsResult.java +50 -0
  273. package/tests/__output__/Browser/RemoveUserContextParameters.java +50 -0
  274. package/tests/__output__/Browser/SetClientWindowStateParameters.java +50 -0
  275. package/tests/__output__/Browser/UserContextInfo.java +50 -0
  276. package/tests/__output__/BrowsingContext/AccessibilityLocator.java +62 -0
  277. package/tests/__output__/BrowsingContext/ActivateParameters.java +50 -0
  278. package/tests/__output__/BrowsingContext/BaseNavigationInfo.java +86 -0
  279. package/tests/__output__/BrowsingContext/BoxClipRectangle.java +98 -0
  280. package/tests/__output__/BrowsingContext/BrowsingContextModule.java +34 -0
  281. package/tests/__output__/BrowsingContext/CaptureScreenshotParameters.java +86 -0
  282. package/tests/__output__/BrowsingContext/CaptureScreenshotResult.java +50 -0
  283. package/tests/__output__/BrowsingContext/ClipRectangle.java +17 -0
  284. package/tests/__output__/BrowsingContext/CloseParameters.java +62 -0
  285. package/tests/__output__/BrowsingContext/ContextLocator.java +62 -0
  286. package/tests/__output__/BrowsingContext/CreateParameters.java +86 -0
  287. package/tests/__output__/BrowsingContext/CreateResult.java +50 -0
  288. package/tests/__output__/BrowsingContext/CreateType.java +35 -0
  289. package/tests/__output__/BrowsingContext/CssLocator.java +62 -0
  290. package/tests/__output__/BrowsingContext/DownloadWillBeginParams.java +50 -0
  291. package/tests/__output__/BrowsingContext/ElementClipRectangle.java +62 -0
  292. package/tests/__output__/BrowsingContext/GetTreeParameters.java +62 -0
  293. package/tests/__output__/BrowsingContext/GetTreeResult.java +50 -0
  294. package/tests/__output__/BrowsingContext/HandleUserPromptParameters.java +74 -0
  295. package/tests/__output__/BrowsingContext/HistoryUpdatedParameters.java +62 -0
  296. package/tests/__output__/BrowsingContext/ImageFormat.java +62 -0
  297. package/tests/__output__/BrowsingContext/Info.java +122 -0
  298. package/tests/__output__/BrowsingContext/InnerTextLocator.java +98 -0
  299. package/tests/__output__/BrowsingContext/LocateNodesParameters.java +98 -0
  300. package/tests/__output__/BrowsingContext/LocateNodesResult.java +50 -0
  301. package/tests/__output__/BrowsingContext/Locator.java +20 -0
  302. package/tests/__output__/BrowsingContext/NavigateParameters.java +74 -0
  303. package/tests/__output__/BrowsingContext/NavigateResult.java +62 -0
  304. package/tests/__output__/BrowsingContext/PrintMarginParameters.java +86 -0
  305. package/tests/__output__/BrowsingContext/PrintPageParameters.java +62 -0
  306. package/tests/__output__/BrowsingContext/PrintParameters.java +134 -0
  307. package/tests/__output__/BrowsingContext/PrintResult.java +50 -0
  308. package/tests/__output__/BrowsingContext/ReadinessState.java +36 -0
  309. package/tests/__output__/BrowsingContext/ReloadParameters.java +74 -0
  310. package/tests/__output__/BrowsingContext/SetViewportParameters.java +86 -0
  311. package/tests/__output__/BrowsingContext/TraverseHistoryParameters.java +62 -0
  312. package/tests/__output__/BrowsingContext/TraverseHistoryResult.java +28 -0
  313. package/tests/__output__/BrowsingContext/UserPromptClosedParameters.java +86 -0
  314. package/tests/__output__/BrowsingContext/UserPromptOpenedParameters.java +98 -0
  315. package/tests/__output__/BrowsingContext/UserPromptType.java +37 -0
  316. package/tests/__output__/BrowsingContext/Viewport.java +62 -0
  317. package/tests/__output__/BrowsingContext/XPathLocator.java +62 -0
  318. package/tests/__output__/ContextValue.java +55 -0
  319. package/tests/__output__/EmptyResult.java +21 -0
  320. package/tests/__output__/Emulation/EmulationModule.java +34 -0
  321. package/tests/__output__/Emulation/GeolocationCoordinates.java +122 -0
  322. package/tests/__output__/Emulation/SetGeolocationOverrideParameters.java +74 -0
  323. package/tests/__output__/Input/ElementOrigin.java +62 -0
  324. package/tests/__output__/Input/FileDialogInfo.java +74 -0
  325. package/tests/__output__/Input/InputModule.java +34 -0
  326. package/tests/__output__/Input/KeyDownAction.java +62 -0
  327. package/tests/__output__/Input/KeySourceAction.java +18 -0
  328. package/tests/__output__/Input/KeySourceActions.java +74 -0
  329. package/tests/__output__/Input/KeyUpAction.java +62 -0
  330. package/tests/__output__/Input/NoneSourceAction.java +16 -0
  331. package/tests/__output__/Input/NoneSourceActions.java +74 -0
  332. package/tests/__output__/Input/Origin.java +36 -0
  333. package/tests/__output__/Input/PauseAction.java +62 -0
  334. package/tests/__output__/Input/PerformActionsParameters.java +62 -0
  335. package/tests/__output__/Input/PointerCommonProperties.java +122 -0
  336. package/tests/__output__/Input/PointerDownAction.java +62 -0
  337. package/tests/__output__/Input/PointerMoveAction.java +98 -0
  338. package/tests/__output__/Input/PointerParameters.java +50 -0
  339. package/tests/__output__/Input/PointerSourceAction.java +19 -0
  340. package/tests/__output__/Input/PointerSourceActions.java +86 -0
  341. package/tests/__output__/Input/PointerType.java +36 -0
  342. package/tests/__output__/Input/PointerUpAction.java +62 -0
  343. package/tests/__output__/Input/ReleaseActionsParameters.java +50 -0
  344. package/tests/__output__/Input/SetFilesParameters.java +74 -0
  345. package/tests/__output__/Input/SourceActions.java +19 -0
  346. package/tests/__output__/Input/WheelScrollAction.java +122 -0
  347. package/tests/__output__/Input/WheelSourceAction.java +17 -0
  348. package/tests/__output__/Input/WheelSourceActions.java +74 -0
  349. package/tests/__output__/Log/BaseLogEntry.java +98 -0
  350. package/tests/__output__/Log/ConsoleLogEntry.java +74 -0
  351. package/tests/__output__/Log/Entry.java +18 -0
  352. package/tests/__output__/Log/GenericLogEntry.java +50 -0
  353. package/tests/__output__/Log/JavascriptLogEntry.java +50 -0
  354. package/tests/__output__/Log/Level.java +37 -0
  355. package/tests/__output__/Log/LogModule.java +34 -0
  356. package/tests/__output__/Network/AddInterceptParameters.java +74 -0
  357. package/tests/__output__/Network/AddInterceptResult.java +50 -0
  358. package/tests/__output__/Network/AuthChallenge.java +62 -0
  359. package/tests/__output__/Network/AuthCredentials.java +74 -0
  360. package/tests/__output__/Network/AuthRequiredParameters.java +50 -0
  361. package/tests/__output__/Network/Base64Value.java +62 -0
  362. package/tests/__output__/Network/BaseParameters.java +122 -0
  363. package/tests/__output__/Network/BeforeRequestSentParameters.java +50 -0
  364. package/tests/__output__/Network/BytesValue.java +17 -0
  365. package/tests/__output__/Network/ContinueRequestParameters.java +110 -0
  366. package/tests/__output__/Network/ContinueResponseParameters.java +110 -0
  367. package/tests/__output__/Network/ContinueWithAuthCredentials.java +62 -0
  368. package/tests/__output__/Network/ContinueWithAuthNoCredentials.java +50 -0
  369. package/tests/__output__/Network/ContinueWithAuthParameters.java +50 -0
  370. package/tests/__output__/Network/Cookie.java +146 -0
  371. package/tests/__output__/Network/CookieHeader.java +62 -0
  372. package/tests/__output__/Network/FailRequestParameters.java +50 -0
  373. package/tests/__output__/Network/FetchErrorParameters.java +50 -0
  374. package/tests/__output__/Network/FetchTimingInfo.java +194 -0
  375. package/tests/__output__/Network/Header.java +62 -0
  376. package/tests/__output__/Network/Initiator.java +98 -0
  377. package/tests/__output__/Network/InterceptPhase.java +36 -0
  378. package/tests/__output__/Network/NetworkModule.java +34 -0
  379. package/tests/__output__/Network/ProvideResponseParameters.java +110 -0
  380. package/tests/__output__/Network/RemoveInterceptParameters.java +50 -0
  381. package/tests/__output__/Network/RequestData.java +158 -0
  382. package/tests/__output__/Network/ResponseCompletedParameters.java +50 -0
  383. package/tests/__output__/Network/ResponseContent.java +50 -0
  384. package/tests/__output__/Network/ResponseData.java +182 -0
  385. package/tests/__output__/Network/ResponseStartedParameters.java +50 -0
  386. package/tests/__output__/Network/SameSite.java +36 -0
  387. package/tests/__output__/Network/SetCacheBehaviorParameters.java +62 -0
  388. package/tests/__output__/Network/SetCookieHeader.java +146 -0
  389. package/tests/__output__/Network/StringValue.java +62 -0
  390. package/tests/__output__/Network/UrlPattern.java +17 -0
  391. package/tests/__output__/Network/UrlPatternPattern.java +110 -0
  392. package/tests/__output__/Network/UrlPatternString.java +62 -0
  393. package/tests/__output__/Script/AddPreloadScriptParameters.java +98 -0
  394. package/tests/__output__/Script/AddPreloadScriptResult.java +50 -0
  395. package/tests/__output__/Script/ArrayBufferRemoteValue.java +74 -0
  396. package/tests/__output__/Script/ArrayLocalValue.java +62 -0
  397. package/tests/__output__/Script/ArrayRemoteValue.java +86 -0
  398. package/tests/__output__/Script/AudioWorkletRealmInfo.java +50 -0
  399. package/tests/__output__/Script/BaseRealmInfo.java +62 -0
  400. package/tests/__output__/Script/BigIntValue.java +62 -0
  401. package/tests/__output__/Script/BooleanValue.java +62 -0
  402. package/tests/__output__/Script/CallFunctionParameters.java +134 -0
  403. package/tests/__output__/Script/ChannelProperties.java +74 -0
  404. package/tests/__output__/Script/ChannelValue.java +62 -0
  405. package/tests/__output__/Script/ContextTarget.java +62 -0
  406. package/tests/__output__/Script/DateLocalValue.java +62 -0
  407. package/tests/__output__/Script/DedicatedWorkerRealmInfo.java +62 -0
  408. package/tests/__output__/Script/DisownParameters.java +62 -0
  409. package/tests/__output__/Script/ErrorRemoteValue.java +74 -0
  410. package/tests/__output__/Script/EvaluateParameters.java +110 -0
  411. package/tests/__output__/Script/EvaluateResult.java +17 -0
  412. package/tests/__output__/Script/EvaluateResultException.java +74 -0
  413. package/tests/__output__/Script/EvaluateResultSuccess.java +74 -0
  414. package/tests/__output__/Script/ExceptionDetails.java +98 -0
  415. package/tests/__output__/Script/FunctionRemoteValue.java +74 -0
  416. package/tests/__output__/Script/GeneratorRemoteValue.java +74 -0
  417. package/tests/__output__/Script/GetRealmsParameters.java +62 -0
  418. package/tests/__output__/Script/GetRealmsResult.java +50 -0
  419. package/tests/__output__/Script/HTMLCollectionRemoteValue.java +86 -0
  420. package/tests/__output__/Script/LocalValue.java +24 -0
  421. package/tests/__output__/Script/MapLocalValue.java +62 -0
  422. package/tests/__output__/Script/MapRemoteValue.java +86 -0
  423. package/tests/__output__/Script/MessageParameters.java +74 -0
  424. package/tests/__output__/Script/NodeListRemoteValue.java +86 -0
  425. package/tests/__output__/Script/NodeProperties.java +146 -0
  426. package/tests/__output__/Script/NodeRemoteValue.java +98 -0
  427. package/tests/__output__/Script/NullValue.java +50 -0
  428. package/tests/__output__/Script/NumberValue.java +62 -0
  429. package/tests/__output__/Script/ObjectLocalValue.java +62 -0
  430. package/tests/__output__/Script/ObjectRemoteValue.java +86 -0
  431. package/tests/__output__/Script/PaintWorkletRealmInfo.java +50 -0
  432. package/tests/__output__/Script/PrimitiveProtocolValue.java +21 -0
  433. package/tests/__output__/Script/PromiseRemoteValue.java +74 -0
  434. package/tests/__output__/Script/ProxyRemoteValue.java +74 -0
  435. package/tests/__output__/Script/RealmDestroyedParameters.java +50 -0
  436. package/tests/__output__/Script/RealmInfo.java +23 -0
  437. package/tests/__output__/Script/RealmTarget.java +50 -0
  438. package/tests/__output__/Script/RealmType.java +41 -0
  439. package/tests/__output__/Script/RegExpLocalValue.java +62 -0
  440. package/tests/__output__/Script/RegExpValue.java +62 -0
  441. package/tests/__output__/Script/RemoteObjectReference.java +62 -0
  442. package/tests/__output__/Script/RemoteReference.java +17 -0
  443. package/tests/__output__/Script/RemoteValue.java +36 -0
  444. package/tests/__output__/Script/RemovePreloadScriptParameters.java +50 -0
  445. package/tests/__output__/Script/ResultOwnership.java +35 -0
  446. package/tests/__output__/Script/ScriptModule.java +34 -0
  447. package/tests/__output__/Script/SerializationOptions.java +74 -0
  448. package/tests/__output__/Script/ServiceWorkerRealmInfo.java +50 -0
  449. package/tests/__output__/Script/SetLocalValue.java +62 -0
  450. package/tests/__output__/Script/SetRemoteValue.java +86 -0
  451. package/tests/__output__/Script/SharedReference.java +62 -0
  452. package/tests/__output__/Script/SharedWorkerRealmInfo.java +50 -0
  453. package/tests/__output__/Script/Source.java +62 -0
  454. package/tests/__output__/Script/SpecialNumber.java +37 -0
  455. package/tests/__output__/Script/StackFrame.java +86 -0
  456. package/tests/__output__/Script/StackTrace.java +50 -0
  457. package/tests/__output__/Script/StringValue.java +62 -0
  458. package/tests/__output__/Script/SymbolRemoteValue.java +74 -0
  459. package/tests/__output__/Script/Target.java +17 -0
  460. package/tests/__output__/Script/TypedArrayRemoteValue.java +74 -0
  461. package/tests/__output__/Script/UndefinedValue.java +50 -0
  462. package/tests/__output__/Script/WeakMapRemoteValue.java +74 -0
  463. package/tests/__output__/Script/WeakSetRemoteValue.java +74 -0
  464. package/tests/__output__/Script/WindowProxyProperties.java +50 -0
  465. package/tests/__output__/Script/WindowProxyRemoteValue.java +86 -0
  466. package/tests/__output__/Script/WindowRealmInfo.java +74 -0
  467. package/tests/__output__/Script/WorkerRealmInfo.java +50 -0
  468. package/tests/__output__/Script/WorkletRealmInfo.java +50 -0
  469. package/tests/__output__/Session/Capabilities.java +55 -0
  470. package/tests/__output__/Session/CapabilitiesRequest.java +62 -0
  471. package/tests/__output__/Session/CapabilityRequest.java +110 -0
  472. package/tests/__output__/Session/NewParameters.java +50 -0
  473. package/tests/__output__/Session/NewResult.java +62 -0
  474. package/tests/__output__/Session/ProxyConfiguration.java +20 -0
  475. package/tests/__output__/Session/SessionModule.java +34 -0
  476. package/tests/__output__/Session/StatusResult.java +62 -0
  477. package/tests/__output__/Session/SubscribeResult.java +50 -0
  478. package/tests/__output__/Session/SubscriptionRequest.java +74 -0
  479. package/tests/__output__/Session/UnsubscribeByAttributesRequest.java +62 -0
  480. package/tests/__output__/Session/UnsubscribeByIDRequest.java +50 -0
  481. package/tests/__output__/Session/UnsubscribeParameters.java +17 -0
  482. package/tests/__output__/Session/UserPromptHandler.java +110 -0
  483. package/tests/__output__/Session/UserPromptHandlerType.java +36 -0
  484. package/tests/__output__/Storage/BrowsingContextPartitionDescriptor.java +62 -0
  485. package/tests/__output__/Storage/CookieFilter.java +146 -0
  486. package/tests/__output__/Storage/DeleteCookiesParameters.java +62 -0
  487. package/tests/__output__/Storage/DeleteCookiesResult.java +50 -0
  488. package/tests/__output__/Storage/GetCookiesParameters.java +62 -0
  489. package/tests/__output__/Storage/GetCookiesResult.java +62 -0
  490. package/tests/__output__/Storage/PartialCookie.java +134 -0
  491. package/tests/__output__/Storage/PartitionDescriptor.java +17 -0
  492. package/tests/__output__/Storage/PartitionKey.java +62 -0
  493. package/tests/__output__/Storage/SetCookieParameters.java +62 -0
  494. package/tests/__output__/Storage/SetCookieResult.java +50 -0
  495. package/tests/__output__/Storage/StorageKeyPartitionDescriptor.java +74 -0
  496. package/tests/__output__/Storage/StorageModule.java +34 -0
  497. package/tests/__output__/WebExtension/ExtensionArchivePath.java +62 -0
  498. package/tests/__output__/WebExtension/ExtensionBase64Encoded.java +62 -0
  499. package/tests/__output__/WebExtension/ExtensionData.java +18 -0
  500. package/tests/__output__/WebExtension/ExtensionPath.java +62 -0
  501. package/tests/__output__/WebExtension/InstallParameters.java +50 -0
  502. package/tests/__output__/WebExtension/InstallResult.java +50 -0
  503. package/tests/__output__/WebExtension/UninstallParameters.java +50 -0
  504. package/tests/__output__/WebExtension/WebExtensionModule.java +34 -0
  505. package/tests/bidi.cddl +2511 -0
  506. package/tests/mod.test.ts +65 -0
  507. package/tsconfig.json +11 -0
@@ -0,0 +1,62 @@
1
+ /**
2
+ * !!! PLEASE DO NOT EDIT THIS FILE !!!
3
+ *
4
+ * This source file, even though checked in, is auto-generated based on the
5
+ * current development within the WebDriver Bidi spec. Any changes to this
6
+ * file need to come from the specification.
7
+ */
8
+
9
+ package org.openqa.selenium.bidirectional.browsingcontext;
10
+
11
+ import java.util.Map;
12
+ import java.util.HashMap;
13
+ import java.util.List;
14
+ import java.util.ArrayList;
15
+ import org.openqa.selenium.bidirectional.*;
16
+
17
+ /**
18
+ * Auto-generated class for WebDriver BiDi protocol
19
+ * Represents parameters for browsingContext.HistoryUpdatedParameters command
20
+ */
21
+ public class HistoryUpdatedParameters {
22
+
23
+ /**
24
+ * Creates a new HistoryUpdatedParameters instance
25
+ */
26
+ public HistoryUpdatedParameters(String context, String url) {
27
+ this.context = context;
28
+ this.url = url;
29
+ }
30
+
31
+ private final String context;
32
+
33
+ /**
34
+ * Gets the context property
35
+ * @return String value
36
+ */
37
+ public String getContext() {
38
+ return this.context;
39
+ }
40
+
41
+ private final String url;
42
+
43
+ /**
44
+ * Gets the url property
45
+ * @return String value
46
+ */
47
+ public String getUrl() {
48
+ return this.url;
49
+ }
50
+
51
+ /**
52
+ * Converts this object to a map for use with BiDi protocol
53
+ * @return Map representation of this object
54
+ */
55
+ public Map<String, Object> asMap() {
56
+ Map<String, Object> toReturn = new HashMap<>();
57
+ toReturn.put("context", this.context);
58
+ toReturn.put("url", this.url);
59
+ return toReturn;
60
+ }
61
+
62
+ }
@@ -0,0 +1,62 @@
1
+ /**
2
+ * !!! PLEASE DO NOT EDIT THIS FILE !!!
3
+ *
4
+ * This source file, even though checked in, is auto-generated based on the
5
+ * current development within the WebDriver Bidi spec. Any changes to this
6
+ * file need to come from the specification.
7
+ */
8
+
9
+ package org.openqa.selenium.bidirectional.browsingcontext;
10
+
11
+ import java.util.Map;
12
+ import java.util.HashMap;
13
+ import java.util.List;
14
+ import java.util.ArrayList;
15
+ import org.openqa.selenium.bidirectional.*;
16
+
17
+ /**
18
+ * Auto-generated class for WebDriver BiDi protocol
19
+ * Represents parameters for browsingContext.ImageFormat command
20
+ */
21
+ public class ImageFormat {
22
+
23
+ /**
24
+ * Creates a new ImageFormat instance
25
+ */
26
+ public ImageFormat(String type, Integer quality) {
27
+ this.type = type;
28
+ this.quality = quality;
29
+ }
30
+
31
+ private final String type;
32
+
33
+ /**
34
+ * Gets the type property
35
+ * @return String value
36
+ */
37
+ public String getType() {
38
+ return this.type;
39
+ }
40
+
41
+ private final Integer quality;
42
+
43
+ /**
44
+ * Gets the quality property
45
+ * @return Integer value
46
+ */
47
+ public Integer getQuality() {
48
+ return this.quality;
49
+ }
50
+
51
+ /**
52
+ * Converts this object to a map for use with BiDi protocol
53
+ * @return Map representation of this object
54
+ */
55
+ public Map<String, Object> asMap() {
56
+ Map<String, Object> toReturn = new HashMap<>();
57
+ toReturn.put("type", this.type);
58
+ toReturn.put("quality", this.quality);
59
+ return toReturn;
60
+ }
61
+
62
+ }
@@ -0,0 +1,122 @@
1
+ /**
2
+ * !!! PLEASE DO NOT EDIT THIS FILE !!!
3
+ *
4
+ * This source file, even though checked in, is auto-generated based on the
5
+ * current development within the WebDriver Bidi spec. Any changes to this
6
+ * file need to come from the specification.
7
+ */
8
+
9
+ package org.openqa.selenium.bidirectional.browsingcontext;
10
+
11
+ import java.util.Map;
12
+ import java.util.HashMap;
13
+ import java.util.List;
14
+ import java.util.ArrayList;
15
+ import org.openqa.selenium.bidirectional.*;
16
+
17
+ /**
18
+ * Auto-generated class for WebDriver BiDi protocol
19
+ * Represents parameters for browsingContext.Info command
20
+ */
21
+ public class Info {
22
+
23
+ /**
24
+ * Creates a new Info instance
25
+ */
26
+ public Info(Object children, String clientWindow, String context, Object originalOpener, String url, String userContext, Object parent) {
27
+ this.children = children;
28
+ this.clientWindow = clientWindow;
29
+ this.context = context;
30
+ this.originalOpener = originalOpener;
31
+ this.url = url;
32
+ this.userContext = userContext;
33
+ this.parent = parent;
34
+ }
35
+
36
+ private final Object children;
37
+
38
+ /**
39
+ * Gets the children property
40
+ * @return Object value
41
+ */
42
+ public Object getChildren() {
43
+ return this.children;
44
+ }
45
+
46
+ private final String clientWindow;
47
+
48
+ /**
49
+ * Gets the clientWindow property
50
+ * @return String value
51
+ */
52
+ public String getClientWindow() {
53
+ return this.clientWindow;
54
+ }
55
+
56
+ private final String context;
57
+
58
+ /**
59
+ * Gets the context property
60
+ * @return String value
61
+ */
62
+ public String getContext() {
63
+ return this.context;
64
+ }
65
+
66
+ private final Object originalOpener;
67
+
68
+ /**
69
+ * Gets the originalOpener property
70
+ * @return Object value
71
+ */
72
+ public Object getOriginalOpener() {
73
+ return this.originalOpener;
74
+ }
75
+
76
+ private final String url;
77
+
78
+ /**
79
+ * Gets the url property
80
+ * @return String value
81
+ */
82
+ public String getUrl() {
83
+ return this.url;
84
+ }
85
+
86
+ private final String userContext;
87
+
88
+ /**
89
+ * Gets the userContext property
90
+ * @return String value
91
+ */
92
+ public String getUserContext() {
93
+ return this.userContext;
94
+ }
95
+
96
+ private final Object parent;
97
+
98
+ /**
99
+ * Gets the parent property
100
+ * @return Object value
101
+ */
102
+ public Object getParent() {
103
+ return this.parent;
104
+ }
105
+
106
+ /**
107
+ * Converts this object to a map for use with BiDi protocol
108
+ * @return Map representation of this object
109
+ */
110
+ public Map<String, Object> asMap() {
111
+ Map<String, Object> toReturn = new HashMap<>();
112
+ toReturn.put("children", this.children);
113
+ toReturn.put("clientWindow", this.clientWindow);
114
+ toReturn.put("context", this.context);
115
+ toReturn.put("originalOpener", this.originalOpener);
116
+ toReturn.put("url", this.url);
117
+ toReturn.put("userContext", this.userContext);
118
+ toReturn.put("parent", this.parent);
119
+ return toReturn;
120
+ }
121
+
122
+ }
@@ -0,0 +1,98 @@
1
+ /**
2
+ * !!! PLEASE DO NOT EDIT THIS FILE !!!
3
+ *
4
+ * This source file, even though checked in, is auto-generated based on the
5
+ * current development within the WebDriver Bidi spec. Any changes to this
6
+ * file need to come from the specification.
7
+ */
8
+
9
+ package org.openqa.selenium.bidirectional.browsingcontext;
10
+
11
+ import java.util.Map;
12
+ import java.util.HashMap;
13
+ import java.util.List;
14
+ import java.util.ArrayList;
15
+ import org.openqa.selenium.bidirectional.*;
16
+
17
+ /**
18
+ * Auto-generated class for WebDriver BiDi protocol
19
+ * Represents parameters for browsingContext.InnerTextLocator command
20
+ */
21
+ public class InnerTextLocator {
22
+
23
+ /**
24
+ * Creates a new InnerTextLocator instance
25
+ */
26
+ public InnerTextLocator(String value, Boolean ignoreCase, Object matchType, Long maxDepth) {
27
+ this.value = value;
28
+ this.ignoreCase = ignoreCase;
29
+ this.matchType = matchType;
30
+ this.maxDepth = maxDepth;
31
+ this.type = "innerText";
32
+ }
33
+
34
+ private final String type;
35
+
36
+ /**
37
+ * Gets the type property
38
+ * @return String value
39
+ */
40
+ public String getType() {
41
+ return this.type;
42
+ }
43
+
44
+ private final String value;
45
+
46
+ /**
47
+ * Gets the value property
48
+ * @return String value
49
+ */
50
+ public String getValue() {
51
+ return this.value;
52
+ }
53
+
54
+ private final Boolean ignoreCase;
55
+
56
+ /**
57
+ * Gets the ignoreCase property
58
+ * @return Boolean value
59
+ */
60
+ public Boolean getIgnoreCase() {
61
+ return this.ignoreCase;
62
+ }
63
+
64
+ private final Object matchType;
65
+
66
+ /**
67
+ * Gets the matchType property
68
+ * @return Object value
69
+ */
70
+ public Object getMatchType() {
71
+ return this.matchType;
72
+ }
73
+
74
+ private final Long maxDepth;
75
+
76
+ /**
77
+ * Gets the maxDepth property
78
+ * @return Long value
79
+ */
80
+ public Long getMaxDepth() {
81
+ return this.maxDepth;
82
+ }
83
+
84
+ /**
85
+ * Converts this object to a map for use with BiDi protocol
86
+ * @return Map representation of this object
87
+ */
88
+ public Map<String, Object> asMap() {
89
+ Map<String, Object> toReturn = new HashMap<>();
90
+ toReturn.put("type", this.type);
91
+ toReturn.put("value", this.value);
92
+ toReturn.put("ignoreCase", this.ignoreCase);
93
+ toReturn.put("matchType", this.matchType);
94
+ toReturn.put("maxDepth", this.maxDepth);
95
+ return toReturn;
96
+ }
97
+
98
+ }
@@ -0,0 +1,98 @@
1
+ /**
2
+ * !!! PLEASE DO NOT EDIT THIS FILE !!!
3
+ *
4
+ * This source file, even though checked in, is auto-generated based on the
5
+ * current development within the WebDriver Bidi spec. Any changes to this
6
+ * file need to come from the specification.
7
+ */
8
+
9
+ package org.openqa.selenium.bidirectional.browsingcontext;
10
+
11
+ import java.util.Map;
12
+ import java.util.HashMap;
13
+ import java.util.List;
14
+ import java.util.ArrayList;
15
+ import org.openqa.selenium.bidirectional.*;
16
+
17
+ /**
18
+ * Auto-generated class for WebDriver BiDi protocol
19
+ * Represents parameters for browsingContext.LocateNodesParameters command
20
+ */
21
+ public class LocateNodesParameters {
22
+
23
+ /**
24
+ * Creates a new LocateNodesParameters instance
25
+ */
26
+ public LocateNodesParameters(String context, BrowsingContext.Locator locator, Long maxNodeCount, Script.SerializationOptions serializationOptions, List<Script.SharedReference> startNodes) {
27
+ this.context = context;
28
+ this.locator = locator;
29
+ this.maxNodeCount = maxNodeCount;
30
+ this.serializationOptions = serializationOptions;
31
+ this.startNodes = startNodes;
32
+ }
33
+
34
+ private final String context;
35
+
36
+ /**
37
+ * Gets the context property
38
+ * @return String value
39
+ */
40
+ public String getContext() {
41
+ return this.context;
42
+ }
43
+
44
+ private final BrowsingContext.Locator locator;
45
+
46
+ /**
47
+ * Gets the locator property
48
+ * @return BrowsingContext.Locator value
49
+ */
50
+ public BrowsingContext.Locator getLocator() {
51
+ return this.locator;
52
+ }
53
+
54
+ private final Long maxNodeCount;
55
+
56
+ /**
57
+ * Gets the maxNodeCount property
58
+ * @return Long value
59
+ */
60
+ public Long getMaxNodeCount() {
61
+ return this.maxNodeCount;
62
+ }
63
+
64
+ private final Script.SerializationOptions serializationOptions;
65
+
66
+ /**
67
+ * Gets the serializationOptions property
68
+ * @return Script.SerializationOptions value
69
+ */
70
+ public Script.SerializationOptions getSerializationOptions() {
71
+ return this.serializationOptions;
72
+ }
73
+
74
+ private final List<Script.SharedReference> startNodes;
75
+
76
+ /**
77
+ * Gets the startNodes property
78
+ * @return List<Script.SharedReference> value
79
+ */
80
+ public List<Script.SharedReference> getStartNodes() {
81
+ return this.startNodes;
82
+ }
83
+
84
+ /**
85
+ * Converts this object to a map for use with BiDi protocol
86
+ * @return Map representation of this object
87
+ */
88
+ public Map<String, Object> asMap() {
89
+ Map<String, Object> toReturn = new HashMap<>();
90
+ toReturn.put("context", this.context);
91
+ toReturn.put("locator", this.locator);
92
+ toReturn.put("maxNodeCount", this.maxNodeCount);
93
+ toReturn.put("serializationOptions", this.serializationOptions);
94
+ toReturn.put("startNodes", this.startNodes);
95
+ return toReturn;
96
+ }
97
+
98
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * !!! PLEASE DO NOT EDIT THIS FILE !!!
3
+ *
4
+ * This source file, even though checked in, is auto-generated based on the
5
+ * current development within the WebDriver Bidi spec. Any changes to this
6
+ * file need to come from the specification.
7
+ */
8
+
9
+ package org.openqa.selenium.bidirectional.browsingcontext;
10
+
11
+ import java.util.Map;
12
+ import java.util.HashMap;
13
+ import java.util.List;
14
+ import java.util.ArrayList;
15
+ import org.openqa.selenium.bidirectional.*;
16
+
17
+ /**
18
+ * Auto-generated class for WebDriver BiDi protocol
19
+ * Represents parameters for browsingContext.LocateNodesResult command
20
+ */
21
+ public class LocateNodesResult {
22
+
23
+ /**
24
+ * Creates a new LocateNodesResult instance
25
+ */
26
+ public LocateNodesResult(List<Script.NodeRemoteValue> nodes) {
27
+ this.nodes = nodes;
28
+ }
29
+
30
+ private final List<Script.NodeRemoteValue> nodes;
31
+
32
+ /**
33
+ * Gets the nodes property
34
+ * @return List<Script.NodeRemoteValue> value
35
+ */
36
+ public List<Script.NodeRemoteValue> getNodes() {
37
+ return this.nodes;
38
+ }
39
+
40
+ /**
41
+ * Converts this object to a map for use with BiDi protocol
42
+ * @return Map representation of this object
43
+ */
44
+ public Map<String, Object> asMap() {
45
+ Map<String, Object> toReturn = new HashMap<>();
46
+ toReturn.put("nodes", this.nodes);
47
+ return toReturn;
48
+ }
49
+
50
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * !!! PLEASE DO NOT EDIT THIS FILE !!!
3
+ *
4
+ * This source file, even though checked in, is auto-generated based on the
5
+ * current development within the WebDriver Bidi spec. Any changes to this
6
+ * file need to come from the specification.
7
+ */
8
+
9
+ /**
10
+ * Auto-generated class for WebDriver BiDi protocol
11
+ * Represents enum for browsingContext.Locator which can be either of these classes:
12
+ * - browsingContext.AccessibilityLocator
13
+ * - browsingContext.CssLocator
14
+ * - browsingContext.ContextLocator
15
+ * - browsingContext.InnerTextLocator
16
+ * - browsingContext.XPathLocator
17
+ */
18
+ public class Locator {
19
+
20
+ }
@@ -0,0 +1,74 @@
1
+ /**
2
+ * !!! PLEASE DO NOT EDIT THIS FILE !!!
3
+ *
4
+ * This source file, even though checked in, is auto-generated based on the
5
+ * current development within the WebDriver Bidi spec. Any changes to this
6
+ * file need to come from the specification.
7
+ */
8
+
9
+ package org.openqa.selenium.bidirectional.browsingcontext;
10
+
11
+ import java.util.Map;
12
+ import java.util.HashMap;
13
+ import java.util.List;
14
+ import java.util.ArrayList;
15
+ import org.openqa.selenium.bidirectional.*;
16
+
17
+ /**
18
+ * Auto-generated class for WebDriver BiDi protocol
19
+ * Represents parameters for browsingContext.NavigateParameters command
20
+ */
21
+ public class NavigateParameters {
22
+
23
+ /**
24
+ * Creates a new NavigateParameters instance
25
+ */
26
+ public NavigateParameters(String context, String url, BrowsingContext.ReadinessState wait) {
27
+ this.context = context;
28
+ this.url = url;
29
+ this.wait = wait;
30
+ }
31
+
32
+ private final String context;
33
+
34
+ /**
35
+ * Gets the context property
36
+ * @return String value
37
+ */
38
+ public String getContext() {
39
+ return this.context;
40
+ }
41
+
42
+ private final String url;
43
+
44
+ /**
45
+ * Gets the url property
46
+ * @return String value
47
+ */
48
+ public String getUrl() {
49
+ return this.url;
50
+ }
51
+
52
+ private final BrowsingContext.ReadinessState wait;
53
+
54
+ /**
55
+ * Gets the wait property
56
+ * @return BrowsingContext.ReadinessState value
57
+ */
58
+ public BrowsingContext.ReadinessState getWait() {
59
+ return this.wait;
60
+ }
61
+
62
+ /**
63
+ * Converts this object to a map for use with BiDi protocol
64
+ * @return Map representation of this object
65
+ */
66
+ public Map<String, Object> asMap() {
67
+ Map<String, Object> toReturn = new HashMap<>();
68
+ toReturn.put("context", this.context);
69
+ toReturn.put("url", this.url);
70
+ toReturn.put("wait", this.wait);
71
+ return toReturn;
72
+ }
73
+
74
+ }
@@ -0,0 +1,62 @@
1
+ /**
2
+ * !!! PLEASE DO NOT EDIT THIS FILE !!!
3
+ *
4
+ * This source file, even though checked in, is auto-generated based on the
5
+ * current development within the WebDriver Bidi spec. Any changes to this
6
+ * file need to come from the specification.
7
+ */
8
+
9
+ package org.openqa.selenium.bidirectional.browsingcontext;
10
+
11
+ import java.util.Map;
12
+ import java.util.HashMap;
13
+ import java.util.List;
14
+ import java.util.ArrayList;
15
+ import org.openqa.selenium.bidirectional.*;
16
+
17
+ /**
18
+ * Auto-generated class for WebDriver BiDi protocol
19
+ * Represents parameters for browsingContext.NavigateResult command
20
+ */
21
+ public class NavigateResult {
22
+
23
+ /**
24
+ * Creates a new NavigateResult instance
25
+ */
26
+ public NavigateResult(Object navigation, String url) {
27
+ this.navigation = navigation;
28
+ this.url = url;
29
+ }
30
+
31
+ private final Object navigation;
32
+
33
+ /**
34
+ * Gets the navigation property
35
+ * @return Object value
36
+ */
37
+ public Object getNavigation() {
38
+ return this.navigation;
39
+ }
40
+
41
+ private final String url;
42
+
43
+ /**
44
+ * Gets the url property
45
+ * @return String value
46
+ */
47
+ public String getUrl() {
48
+ return this.url;
49
+ }
50
+
51
+ /**
52
+ * Converts this object to a map for use with BiDi protocol
53
+ * @return Map representation of this object
54
+ */
55
+ public Map<String, Object> asMap() {
56
+ Map<String, Object> toReturn = new HashMap<>();
57
+ toReturn.put("navigation", this.navigation);
58
+ toReturn.put("url", this.url);
59
+ return toReturn;
60
+ }
61
+
62
+ }