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.
- package/.release-it.ts +10 -0
- package/README.md +28 -0
- package/bin/cddl2java.js +5 -0
- package/build/cli.d.ts +2 -0
- package/build/cli.d.ts.map +1 -0
- package/build/cli.js +36 -0
- package/build/constants.d.ts +4 -0
- package/build/constants.d.ts.map +1 -0
- package/build/constants.js +22 -0
- package/build/index.d.ts +2 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +656 -0
- package/build/templates.d.ts +10 -0
- package/build/templates.d.ts.map +1 -0
- package/build/templates.js +252 -0
- package/build/utils.d.ts +11 -0
- package/build/utils.d.ts.map +1 -0
- package/build/utils.js +17 -0
- package/package.json +41 -0
- package/src/cli.ts +42 -0
- package/src/constants.ts +25 -0
- package/src/index.ts +731 -0
- package/src/templates.ts +258 -0
- package/src/utils.ts +23 -0
- package/tests/__fixtures__/AccessibilityValue.java +71 -0
- package/tests/__fixtures__/Browser/BrowserModule.java +34 -0
- package/tests/__fixtures__/Browser/ClientWindowInfo.java +122 -0
- package/tests/__fixtures__/Browser/ClientWindowNamedState.java +50 -0
- package/tests/__fixtures__/Browser/ClientWindowRectState.java +98 -0
- package/tests/__fixtures__/Browser/CreateUserContextResult.java +16 -0
- package/tests/__fixtures__/Browser/GetClientWindowsResult.java +50 -0
- package/tests/__fixtures__/Browser/GetUserContextsResult.java +50 -0
- package/tests/__fixtures__/Browser/RemoveUserContextParameters.java +50 -0
- package/tests/__fixtures__/Browser/SetClientWindowStateParameters.java +50 -0
- package/tests/__fixtures__/Browser/UserContextInfo.java +50 -0
- package/tests/__fixtures__/BrowsingContext/AccessibilityLocator.java +62 -0
- package/tests/__fixtures__/BrowsingContext/ActivateParameters.java +50 -0
- package/tests/__fixtures__/BrowsingContext/BaseNavigationInfo.java +86 -0
- package/tests/__fixtures__/BrowsingContext/BoxClipRectangle.java +98 -0
- package/tests/__fixtures__/BrowsingContext/BrowsingContextModule.java +34 -0
- package/tests/__fixtures__/BrowsingContext/CaptureScreenshotParameters.java +86 -0
- package/tests/__fixtures__/BrowsingContext/CaptureScreenshotResult.java +50 -0
- package/tests/__fixtures__/BrowsingContext/ClipRectangle.java +17 -0
- package/tests/__fixtures__/BrowsingContext/CloseParameters.java +62 -0
- package/tests/__fixtures__/BrowsingContext/ContextLocator.java +62 -0
- package/tests/__fixtures__/BrowsingContext/CreateParameters.java +86 -0
- package/tests/__fixtures__/BrowsingContext/CreateResult.java +50 -0
- package/tests/__fixtures__/BrowsingContext/CreateType.java +35 -0
- package/tests/__fixtures__/BrowsingContext/CssLocator.java +62 -0
- package/tests/__fixtures__/BrowsingContext/DownloadWillBeginParams.java +50 -0
- package/tests/__fixtures__/BrowsingContext/ElementClipRectangle.java +62 -0
- package/tests/__fixtures__/BrowsingContext/GetTreeParameters.java +62 -0
- package/tests/__fixtures__/BrowsingContext/GetTreeResult.java +50 -0
- package/tests/__fixtures__/BrowsingContext/HandleUserPromptParameters.java +74 -0
- package/tests/__fixtures__/BrowsingContext/HistoryUpdatedParameters.java +62 -0
- package/tests/__fixtures__/BrowsingContext/ImageFormat.java +62 -0
- package/tests/__fixtures__/BrowsingContext/Info.java +122 -0
- package/tests/__fixtures__/BrowsingContext/InnerTextLocator.java +98 -0
- package/tests/__fixtures__/BrowsingContext/LocateNodesParameters.java +98 -0
- package/tests/__fixtures__/BrowsingContext/LocateNodesResult.java +50 -0
- package/tests/__fixtures__/BrowsingContext/Locator.java +20 -0
- package/tests/__fixtures__/BrowsingContext/NavigateParameters.java +74 -0
- package/tests/__fixtures__/BrowsingContext/NavigateResult.java +62 -0
- package/tests/__fixtures__/BrowsingContext/PrintMarginParameters.java +86 -0
- package/tests/__fixtures__/BrowsingContext/PrintPageParameters.java +62 -0
- package/tests/__fixtures__/BrowsingContext/PrintParameters.java +134 -0
- package/tests/__fixtures__/BrowsingContext/PrintResult.java +50 -0
- package/tests/__fixtures__/BrowsingContext/ReadinessState.java +36 -0
- package/tests/__fixtures__/BrowsingContext/ReloadParameters.java +74 -0
- package/tests/__fixtures__/BrowsingContext/SetViewportParameters.java +86 -0
- package/tests/__fixtures__/BrowsingContext/TraverseHistoryParameters.java +62 -0
- package/tests/__fixtures__/BrowsingContext/TraverseHistoryResult.java +28 -0
- package/tests/__fixtures__/BrowsingContext/UserPromptClosedParameters.java +86 -0
- package/tests/__fixtures__/BrowsingContext/UserPromptOpenedParameters.java +98 -0
- package/tests/__fixtures__/BrowsingContext/UserPromptType.java +37 -0
- package/tests/__fixtures__/BrowsingContext/Viewport.java +62 -0
- package/tests/__fixtures__/BrowsingContext/XPathLocator.java +62 -0
- package/tests/__fixtures__/ContextValue.java +55 -0
- package/tests/__fixtures__/EmptyResult.java +21 -0
- package/tests/__fixtures__/Emulation/EmulationModule.java +34 -0
- package/tests/__fixtures__/Emulation/GeolocationCoordinates.java +122 -0
- package/tests/__fixtures__/Emulation/SetGeolocationOverrideParameters.java +74 -0
- package/tests/__fixtures__/Input/ElementOrigin.java +62 -0
- package/tests/__fixtures__/Input/FileDialogInfo.java +74 -0
- package/tests/__fixtures__/Input/InputModule.java +34 -0
- package/tests/__fixtures__/Input/KeyDownAction.java +62 -0
- package/tests/__fixtures__/Input/KeySourceAction.java +18 -0
- package/tests/__fixtures__/Input/KeySourceActions.java +74 -0
- package/tests/__fixtures__/Input/KeyUpAction.java +62 -0
- package/tests/__fixtures__/Input/NoneSourceAction.java +16 -0
- package/tests/__fixtures__/Input/NoneSourceActions.java +74 -0
- package/tests/__fixtures__/Input/Origin.java +36 -0
- package/tests/__fixtures__/Input/PauseAction.java +62 -0
- package/tests/__fixtures__/Input/PerformActionsParameters.java +62 -0
- package/tests/__fixtures__/Input/PointerCommonProperties.java +122 -0
- package/tests/__fixtures__/Input/PointerDownAction.java +62 -0
- package/tests/__fixtures__/Input/PointerMoveAction.java +98 -0
- package/tests/__fixtures__/Input/PointerParameters.java +50 -0
- package/tests/__fixtures__/Input/PointerSourceAction.java +19 -0
- package/tests/__fixtures__/Input/PointerSourceActions.java +86 -0
- package/tests/__fixtures__/Input/PointerType.java +36 -0
- package/tests/__fixtures__/Input/PointerUpAction.java +62 -0
- package/tests/__fixtures__/Input/ReleaseActionsParameters.java +50 -0
- package/tests/__fixtures__/Input/SetFilesParameters.java +74 -0
- package/tests/__fixtures__/Input/SourceActions.java +19 -0
- package/tests/__fixtures__/Input/WheelScrollAction.java +122 -0
- package/tests/__fixtures__/Input/WheelSourceAction.java +17 -0
- package/tests/__fixtures__/Input/WheelSourceActions.java +74 -0
- package/tests/__fixtures__/Log/BaseLogEntry.java +98 -0
- package/tests/__fixtures__/Log/ConsoleLogEntry.java +74 -0
- package/tests/__fixtures__/Log/Entry.java +18 -0
- package/tests/__fixtures__/Log/GenericLogEntry.java +50 -0
- package/tests/__fixtures__/Log/JavascriptLogEntry.java +50 -0
- package/tests/__fixtures__/Log/Level.java +37 -0
- package/tests/__fixtures__/Log/LogModule.java +34 -0
- package/tests/__fixtures__/Network/AddInterceptParameters.java +74 -0
- package/tests/__fixtures__/Network/AddInterceptResult.java +50 -0
- package/tests/__fixtures__/Network/AuthChallenge.java +62 -0
- package/tests/__fixtures__/Network/AuthCredentials.java +74 -0
- package/tests/__fixtures__/Network/AuthRequiredParameters.java +50 -0
- package/tests/__fixtures__/Network/Base64Value.java +62 -0
- package/tests/__fixtures__/Network/BaseParameters.java +122 -0
- package/tests/__fixtures__/Network/BeforeRequestSentParameters.java +50 -0
- package/tests/__fixtures__/Network/BytesValue.java +17 -0
- package/tests/__fixtures__/Network/ContinueRequestParameters.java +110 -0
- package/tests/__fixtures__/Network/ContinueResponseParameters.java +110 -0
- package/tests/__fixtures__/Network/ContinueWithAuthCredentials.java +62 -0
- package/tests/__fixtures__/Network/ContinueWithAuthNoCredentials.java +50 -0
- package/tests/__fixtures__/Network/ContinueWithAuthParameters.java +50 -0
- package/tests/__fixtures__/Network/Cookie.java +146 -0
- package/tests/__fixtures__/Network/CookieHeader.java +62 -0
- package/tests/__fixtures__/Network/FailRequestParameters.java +50 -0
- package/tests/__fixtures__/Network/FetchErrorParameters.java +50 -0
- package/tests/__fixtures__/Network/FetchTimingInfo.java +194 -0
- package/tests/__fixtures__/Network/Header.java +62 -0
- package/tests/__fixtures__/Network/Initiator.java +98 -0
- package/tests/__fixtures__/Network/InterceptPhase.java +36 -0
- package/tests/__fixtures__/Network/NetworkModule.java +34 -0
- package/tests/__fixtures__/Network/ProvideResponseParameters.java +110 -0
- package/tests/__fixtures__/Network/RemoveInterceptParameters.java +50 -0
- package/tests/__fixtures__/Network/RequestData.java +158 -0
- package/tests/__fixtures__/Network/ResponseCompletedParameters.java +50 -0
- package/tests/__fixtures__/Network/ResponseContent.java +50 -0
- package/tests/__fixtures__/Network/ResponseData.java +182 -0
- package/tests/__fixtures__/Network/ResponseStartedParameters.java +50 -0
- package/tests/__fixtures__/Network/SameSite.java +36 -0
- package/tests/__fixtures__/Network/SetCacheBehaviorParameters.java +62 -0
- package/tests/__fixtures__/Network/SetCookieHeader.java +146 -0
- package/tests/__fixtures__/Network/StringValue.java +62 -0
- package/tests/__fixtures__/Network/UrlPattern.java +17 -0
- package/tests/__fixtures__/Network/UrlPatternPattern.java +110 -0
- package/tests/__fixtures__/Network/UrlPatternString.java +62 -0
- package/tests/__fixtures__/Script/AddPreloadScriptParameters.java +98 -0
- package/tests/__fixtures__/Script/AddPreloadScriptResult.java +50 -0
- package/tests/__fixtures__/Script/ArrayBufferRemoteValue.java +74 -0
- package/tests/__fixtures__/Script/ArrayLocalValue.java +62 -0
- package/tests/__fixtures__/Script/ArrayRemoteValue.java +86 -0
- package/tests/__fixtures__/Script/AudioWorkletRealmInfo.java +50 -0
- package/tests/__fixtures__/Script/BaseRealmInfo.java +62 -0
- package/tests/__fixtures__/Script/BigIntValue.java +62 -0
- package/tests/__fixtures__/Script/BooleanValue.java +62 -0
- package/tests/__fixtures__/Script/CallFunctionParameters.java +134 -0
- package/tests/__fixtures__/Script/ChannelProperties.java +74 -0
- package/tests/__fixtures__/Script/ChannelValue.java +62 -0
- package/tests/__fixtures__/Script/ContextTarget.java +62 -0
- package/tests/__fixtures__/Script/DateLocalValue.java +62 -0
- package/tests/__fixtures__/Script/DedicatedWorkerRealmInfo.java +62 -0
- package/tests/__fixtures__/Script/DisownParameters.java +62 -0
- package/tests/__fixtures__/Script/ErrorRemoteValue.java +74 -0
- package/tests/__fixtures__/Script/EvaluateParameters.java +110 -0
- package/tests/__fixtures__/Script/EvaluateResult.java +17 -0
- package/tests/__fixtures__/Script/EvaluateResultException.java +74 -0
- package/tests/__fixtures__/Script/EvaluateResultSuccess.java +74 -0
- package/tests/__fixtures__/Script/ExceptionDetails.java +98 -0
- package/tests/__fixtures__/Script/FunctionRemoteValue.java +74 -0
- package/tests/__fixtures__/Script/GeneratorRemoteValue.java +74 -0
- package/tests/__fixtures__/Script/GetRealmsParameters.java +62 -0
- package/tests/__fixtures__/Script/GetRealmsResult.java +50 -0
- package/tests/__fixtures__/Script/HTMLCollectionRemoteValue.java +86 -0
- package/tests/__fixtures__/Script/LocalValue.java +24 -0
- package/tests/__fixtures__/Script/MapLocalValue.java +62 -0
- package/tests/__fixtures__/Script/MapRemoteValue.java +86 -0
- package/tests/__fixtures__/Script/MessageParameters.java +74 -0
- package/tests/__fixtures__/Script/NodeListRemoteValue.java +86 -0
- package/tests/__fixtures__/Script/NodeProperties.java +146 -0
- package/tests/__fixtures__/Script/NodeRemoteValue.java +98 -0
- package/tests/__fixtures__/Script/NullValue.java +50 -0
- package/tests/__fixtures__/Script/NumberValue.java +62 -0
- package/tests/__fixtures__/Script/ObjectLocalValue.java +62 -0
- package/tests/__fixtures__/Script/ObjectRemoteValue.java +86 -0
- package/tests/__fixtures__/Script/PaintWorkletRealmInfo.java +50 -0
- package/tests/__fixtures__/Script/PrimitiveProtocolValue.java +21 -0
- package/tests/__fixtures__/Script/PromiseRemoteValue.java +74 -0
- package/tests/__fixtures__/Script/ProxyRemoteValue.java +74 -0
- package/tests/__fixtures__/Script/RealmDestroyedParameters.java +50 -0
- package/tests/__fixtures__/Script/RealmInfo.java +23 -0
- package/tests/__fixtures__/Script/RealmTarget.java +50 -0
- package/tests/__fixtures__/Script/RealmType.java +41 -0
- package/tests/__fixtures__/Script/RegExpLocalValue.java +62 -0
- package/tests/__fixtures__/Script/RegExpValue.java +62 -0
- package/tests/__fixtures__/Script/RemoteObjectReference.java +62 -0
- package/tests/__fixtures__/Script/RemoteReference.java +17 -0
- package/tests/__fixtures__/Script/RemoteValue.java +36 -0
- package/tests/__fixtures__/Script/RemovePreloadScriptParameters.java +50 -0
- package/tests/__fixtures__/Script/ResultOwnership.java +35 -0
- package/tests/__fixtures__/Script/ScriptModule.java +34 -0
- package/tests/__fixtures__/Script/SerializationOptions.java +74 -0
- package/tests/__fixtures__/Script/ServiceWorkerRealmInfo.java +50 -0
- package/tests/__fixtures__/Script/SetLocalValue.java +62 -0
- package/tests/__fixtures__/Script/SetRemoteValue.java +86 -0
- package/tests/__fixtures__/Script/SharedReference.java +62 -0
- package/tests/__fixtures__/Script/SharedWorkerRealmInfo.java +50 -0
- package/tests/__fixtures__/Script/Source.java +62 -0
- package/tests/__fixtures__/Script/SpecialNumber.java +37 -0
- package/tests/__fixtures__/Script/StackFrame.java +86 -0
- package/tests/__fixtures__/Script/StackTrace.java +50 -0
- package/tests/__fixtures__/Script/StringValue.java +62 -0
- package/tests/__fixtures__/Script/SymbolRemoteValue.java +74 -0
- package/tests/__fixtures__/Script/Target.java +17 -0
- package/tests/__fixtures__/Script/TypedArrayRemoteValue.java +74 -0
- package/tests/__fixtures__/Script/UndefinedValue.java +50 -0
- package/tests/__fixtures__/Script/WeakMapRemoteValue.java +74 -0
- package/tests/__fixtures__/Script/WeakSetRemoteValue.java +74 -0
- package/tests/__fixtures__/Script/WindowProxyProperties.java +50 -0
- package/tests/__fixtures__/Script/WindowProxyRemoteValue.java +86 -0
- package/tests/__fixtures__/Script/WindowRealmInfo.java +74 -0
- package/tests/__fixtures__/Script/WorkerRealmInfo.java +50 -0
- package/tests/__fixtures__/Script/WorkletRealmInfo.java +50 -0
- package/tests/__fixtures__/Session/Capabilities.java +55 -0
- package/tests/__fixtures__/Session/CapabilitiesRequest.java +62 -0
- package/tests/__fixtures__/Session/CapabilityRequest.java +110 -0
- package/tests/__fixtures__/Session/NewParameters.java +50 -0
- package/tests/__fixtures__/Session/NewResult.java +62 -0
- package/tests/__fixtures__/Session/ProxyConfiguration.java +20 -0
- package/tests/__fixtures__/Session/SessionModule.java +34 -0
- package/tests/__fixtures__/Session/StatusResult.java +62 -0
- package/tests/__fixtures__/Session/SubscribeResult.java +50 -0
- package/tests/__fixtures__/Session/SubscriptionRequest.java +74 -0
- package/tests/__fixtures__/Session/UnsubscribeByAttributesRequest.java +62 -0
- package/tests/__fixtures__/Session/UnsubscribeByIDRequest.java +50 -0
- package/tests/__fixtures__/Session/UnsubscribeParameters.java +17 -0
- package/tests/__fixtures__/Session/UserPromptHandler.java +110 -0
- package/tests/__fixtures__/Session/UserPromptHandlerType.java +36 -0
- package/tests/__fixtures__/Storage/BrowsingContextPartitionDescriptor.java +62 -0
- package/tests/__fixtures__/Storage/CookieFilter.java +146 -0
- package/tests/__fixtures__/Storage/DeleteCookiesParameters.java +62 -0
- package/tests/__fixtures__/Storage/DeleteCookiesResult.java +50 -0
- package/tests/__fixtures__/Storage/GetCookiesParameters.java +62 -0
- package/tests/__fixtures__/Storage/GetCookiesResult.java +62 -0
- package/tests/__fixtures__/Storage/PartialCookie.java +134 -0
- package/tests/__fixtures__/Storage/PartitionDescriptor.java +17 -0
- package/tests/__fixtures__/Storage/PartitionKey.java +62 -0
- package/tests/__fixtures__/Storage/SetCookieParameters.java +62 -0
- package/tests/__fixtures__/Storage/SetCookieResult.java +50 -0
- package/tests/__fixtures__/Storage/StorageKeyPartitionDescriptor.java +74 -0
- package/tests/__fixtures__/Storage/StorageModule.java +34 -0
- package/tests/__fixtures__/WebExtension/ExtensionArchivePath.java +62 -0
- package/tests/__fixtures__/WebExtension/ExtensionBase64Encoded.java +62 -0
- package/tests/__fixtures__/WebExtension/ExtensionData.java +18 -0
- package/tests/__fixtures__/WebExtension/ExtensionPath.java +62 -0
- package/tests/__fixtures__/WebExtension/InstallParameters.java +50 -0
- package/tests/__fixtures__/WebExtension/InstallResult.java +50 -0
- package/tests/__fixtures__/WebExtension/UninstallParameters.java +50 -0
- package/tests/__fixtures__/WebExtension/WebExtensionModule.java +34 -0
- package/tests/__output__/AccessibilityValue.java +71 -0
- package/tests/__output__/Browser/BrowserModule.java +34 -0
- package/tests/__output__/Browser/ClientWindowInfo.java +122 -0
- package/tests/__output__/Browser/ClientWindowNamedState.java +50 -0
- package/tests/__output__/Browser/ClientWindowRectState.java +98 -0
- package/tests/__output__/Browser/CreateUserContextResult.java +16 -0
- package/tests/__output__/Browser/GetClientWindowsResult.java +50 -0
- package/tests/__output__/Browser/GetUserContextsResult.java +50 -0
- package/tests/__output__/Browser/RemoveUserContextParameters.java +50 -0
- package/tests/__output__/Browser/SetClientWindowStateParameters.java +50 -0
- package/tests/__output__/Browser/UserContextInfo.java +50 -0
- package/tests/__output__/BrowsingContext/AccessibilityLocator.java +62 -0
- package/tests/__output__/BrowsingContext/ActivateParameters.java +50 -0
- package/tests/__output__/BrowsingContext/BaseNavigationInfo.java +86 -0
- package/tests/__output__/BrowsingContext/BoxClipRectangle.java +98 -0
- package/tests/__output__/BrowsingContext/BrowsingContextModule.java +34 -0
- package/tests/__output__/BrowsingContext/CaptureScreenshotParameters.java +86 -0
- package/tests/__output__/BrowsingContext/CaptureScreenshotResult.java +50 -0
- package/tests/__output__/BrowsingContext/ClipRectangle.java +17 -0
- package/tests/__output__/BrowsingContext/CloseParameters.java +62 -0
- package/tests/__output__/BrowsingContext/ContextLocator.java +62 -0
- package/tests/__output__/BrowsingContext/CreateParameters.java +86 -0
- package/tests/__output__/BrowsingContext/CreateResult.java +50 -0
- package/tests/__output__/BrowsingContext/CreateType.java +35 -0
- package/tests/__output__/BrowsingContext/CssLocator.java +62 -0
- package/tests/__output__/BrowsingContext/DownloadWillBeginParams.java +50 -0
- package/tests/__output__/BrowsingContext/ElementClipRectangle.java +62 -0
- package/tests/__output__/BrowsingContext/GetTreeParameters.java +62 -0
- package/tests/__output__/BrowsingContext/GetTreeResult.java +50 -0
- package/tests/__output__/BrowsingContext/HandleUserPromptParameters.java +74 -0
- package/tests/__output__/BrowsingContext/HistoryUpdatedParameters.java +62 -0
- package/tests/__output__/BrowsingContext/ImageFormat.java +62 -0
- package/tests/__output__/BrowsingContext/Info.java +122 -0
- package/tests/__output__/BrowsingContext/InnerTextLocator.java +98 -0
- package/tests/__output__/BrowsingContext/LocateNodesParameters.java +98 -0
- package/tests/__output__/BrowsingContext/LocateNodesResult.java +50 -0
- package/tests/__output__/BrowsingContext/Locator.java +20 -0
- package/tests/__output__/BrowsingContext/NavigateParameters.java +74 -0
- package/tests/__output__/BrowsingContext/NavigateResult.java +62 -0
- package/tests/__output__/BrowsingContext/PrintMarginParameters.java +86 -0
- package/tests/__output__/BrowsingContext/PrintPageParameters.java +62 -0
- package/tests/__output__/BrowsingContext/PrintParameters.java +134 -0
- package/tests/__output__/BrowsingContext/PrintResult.java +50 -0
- package/tests/__output__/BrowsingContext/ReadinessState.java +36 -0
- package/tests/__output__/BrowsingContext/ReloadParameters.java +74 -0
- package/tests/__output__/BrowsingContext/SetViewportParameters.java +86 -0
- package/tests/__output__/BrowsingContext/TraverseHistoryParameters.java +62 -0
- package/tests/__output__/BrowsingContext/TraverseHistoryResult.java +28 -0
- package/tests/__output__/BrowsingContext/UserPromptClosedParameters.java +86 -0
- package/tests/__output__/BrowsingContext/UserPromptOpenedParameters.java +98 -0
- package/tests/__output__/BrowsingContext/UserPromptType.java +37 -0
- package/tests/__output__/BrowsingContext/Viewport.java +62 -0
- package/tests/__output__/BrowsingContext/XPathLocator.java +62 -0
- package/tests/__output__/ContextValue.java +55 -0
- package/tests/__output__/EmptyResult.java +21 -0
- package/tests/__output__/Emulation/EmulationModule.java +34 -0
- package/tests/__output__/Emulation/GeolocationCoordinates.java +122 -0
- package/tests/__output__/Emulation/SetGeolocationOverrideParameters.java +74 -0
- package/tests/__output__/Input/ElementOrigin.java +62 -0
- package/tests/__output__/Input/FileDialogInfo.java +74 -0
- package/tests/__output__/Input/InputModule.java +34 -0
- package/tests/__output__/Input/KeyDownAction.java +62 -0
- package/tests/__output__/Input/KeySourceAction.java +18 -0
- package/tests/__output__/Input/KeySourceActions.java +74 -0
- package/tests/__output__/Input/KeyUpAction.java +62 -0
- package/tests/__output__/Input/NoneSourceAction.java +16 -0
- package/tests/__output__/Input/NoneSourceActions.java +74 -0
- package/tests/__output__/Input/Origin.java +36 -0
- package/tests/__output__/Input/PauseAction.java +62 -0
- package/tests/__output__/Input/PerformActionsParameters.java +62 -0
- package/tests/__output__/Input/PointerCommonProperties.java +122 -0
- package/tests/__output__/Input/PointerDownAction.java +62 -0
- package/tests/__output__/Input/PointerMoveAction.java +98 -0
- package/tests/__output__/Input/PointerParameters.java +50 -0
- package/tests/__output__/Input/PointerSourceAction.java +19 -0
- package/tests/__output__/Input/PointerSourceActions.java +86 -0
- package/tests/__output__/Input/PointerType.java +36 -0
- package/tests/__output__/Input/PointerUpAction.java +62 -0
- package/tests/__output__/Input/ReleaseActionsParameters.java +50 -0
- package/tests/__output__/Input/SetFilesParameters.java +74 -0
- package/tests/__output__/Input/SourceActions.java +19 -0
- package/tests/__output__/Input/WheelScrollAction.java +122 -0
- package/tests/__output__/Input/WheelSourceAction.java +17 -0
- package/tests/__output__/Input/WheelSourceActions.java +74 -0
- package/tests/__output__/Log/BaseLogEntry.java +98 -0
- package/tests/__output__/Log/ConsoleLogEntry.java +74 -0
- package/tests/__output__/Log/Entry.java +18 -0
- package/tests/__output__/Log/GenericLogEntry.java +50 -0
- package/tests/__output__/Log/JavascriptLogEntry.java +50 -0
- package/tests/__output__/Log/Level.java +37 -0
- package/tests/__output__/Log/LogModule.java +34 -0
- package/tests/__output__/Network/AddInterceptParameters.java +74 -0
- package/tests/__output__/Network/AddInterceptResult.java +50 -0
- package/tests/__output__/Network/AuthChallenge.java +62 -0
- package/tests/__output__/Network/AuthCredentials.java +74 -0
- package/tests/__output__/Network/AuthRequiredParameters.java +50 -0
- package/tests/__output__/Network/Base64Value.java +62 -0
- package/tests/__output__/Network/BaseParameters.java +122 -0
- package/tests/__output__/Network/BeforeRequestSentParameters.java +50 -0
- package/tests/__output__/Network/BytesValue.java +17 -0
- package/tests/__output__/Network/ContinueRequestParameters.java +110 -0
- package/tests/__output__/Network/ContinueResponseParameters.java +110 -0
- package/tests/__output__/Network/ContinueWithAuthCredentials.java +62 -0
- package/tests/__output__/Network/ContinueWithAuthNoCredentials.java +50 -0
- package/tests/__output__/Network/ContinueWithAuthParameters.java +50 -0
- package/tests/__output__/Network/Cookie.java +146 -0
- package/tests/__output__/Network/CookieHeader.java +62 -0
- package/tests/__output__/Network/FailRequestParameters.java +50 -0
- package/tests/__output__/Network/FetchErrorParameters.java +50 -0
- package/tests/__output__/Network/FetchTimingInfo.java +194 -0
- package/tests/__output__/Network/Header.java +62 -0
- package/tests/__output__/Network/Initiator.java +98 -0
- package/tests/__output__/Network/InterceptPhase.java +36 -0
- package/tests/__output__/Network/NetworkModule.java +34 -0
- package/tests/__output__/Network/ProvideResponseParameters.java +110 -0
- package/tests/__output__/Network/RemoveInterceptParameters.java +50 -0
- package/tests/__output__/Network/RequestData.java +158 -0
- package/tests/__output__/Network/ResponseCompletedParameters.java +50 -0
- package/tests/__output__/Network/ResponseContent.java +50 -0
- package/tests/__output__/Network/ResponseData.java +182 -0
- package/tests/__output__/Network/ResponseStartedParameters.java +50 -0
- package/tests/__output__/Network/SameSite.java +36 -0
- package/tests/__output__/Network/SetCacheBehaviorParameters.java +62 -0
- package/tests/__output__/Network/SetCookieHeader.java +146 -0
- package/tests/__output__/Network/StringValue.java +62 -0
- package/tests/__output__/Network/UrlPattern.java +17 -0
- package/tests/__output__/Network/UrlPatternPattern.java +110 -0
- package/tests/__output__/Network/UrlPatternString.java +62 -0
- package/tests/__output__/Script/AddPreloadScriptParameters.java +98 -0
- package/tests/__output__/Script/AddPreloadScriptResult.java +50 -0
- package/tests/__output__/Script/ArrayBufferRemoteValue.java +74 -0
- package/tests/__output__/Script/ArrayLocalValue.java +62 -0
- package/tests/__output__/Script/ArrayRemoteValue.java +86 -0
- package/tests/__output__/Script/AudioWorkletRealmInfo.java +50 -0
- package/tests/__output__/Script/BaseRealmInfo.java +62 -0
- package/tests/__output__/Script/BigIntValue.java +62 -0
- package/tests/__output__/Script/BooleanValue.java +62 -0
- package/tests/__output__/Script/CallFunctionParameters.java +134 -0
- package/tests/__output__/Script/ChannelProperties.java +74 -0
- package/tests/__output__/Script/ChannelValue.java +62 -0
- package/tests/__output__/Script/ContextTarget.java +62 -0
- package/tests/__output__/Script/DateLocalValue.java +62 -0
- package/tests/__output__/Script/DedicatedWorkerRealmInfo.java +62 -0
- package/tests/__output__/Script/DisownParameters.java +62 -0
- package/tests/__output__/Script/ErrorRemoteValue.java +74 -0
- package/tests/__output__/Script/EvaluateParameters.java +110 -0
- package/tests/__output__/Script/EvaluateResult.java +17 -0
- package/tests/__output__/Script/EvaluateResultException.java +74 -0
- package/tests/__output__/Script/EvaluateResultSuccess.java +74 -0
- package/tests/__output__/Script/ExceptionDetails.java +98 -0
- package/tests/__output__/Script/FunctionRemoteValue.java +74 -0
- package/tests/__output__/Script/GeneratorRemoteValue.java +74 -0
- package/tests/__output__/Script/GetRealmsParameters.java +62 -0
- package/tests/__output__/Script/GetRealmsResult.java +50 -0
- package/tests/__output__/Script/HTMLCollectionRemoteValue.java +86 -0
- package/tests/__output__/Script/LocalValue.java +24 -0
- package/tests/__output__/Script/MapLocalValue.java +62 -0
- package/tests/__output__/Script/MapRemoteValue.java +86 -0
- package/tests/__output__/Script/MessageParameters.java +74 -0
- package/tests/__output__/Script/NodeListRemoteValue.java +86 -0
- package/tests/__output__/Script/NodeProperties.java +146 -0
- package/tests/__output__/Script/NodeRemoteValue.java +98 -0
- package/tests/__output__/Script/NullValue.java +50 -0
- package/tests/__output__/Script/NumberValue.java +62 -0
- package/tests/__output__/Script/ObjectLocalValue.java +62 -0
- package/tests/__output__/Script/ObjectRemoteValue.java +86 -0
- package/tests/__output__/Script/PaintWorkletRealmInfo.java +50 -0
- package/tests/__output__/Script/PrimitiveProtocolValue.java +21 -0
- package/tests/__output__/Script/PromiseRemoteValue.java +74 -0
- package/tests/__output__/Script/ProxyRemoteValue.java +74 -0
- package/tests/__output__/Script/RealmDestroyedParameters.java +50 -0
- package/tests/__output__/Script/RealmInfo.java +23 -0
- package/tests/__output__/Script/RealmTarget.java +50 -0
- package/tests/__output__/Script/RealmType.java +41 -0
- package/tests/__output__/Script/RegExpLocalValue.java +62 -0
- package/tests/__output__/Script/RegExpValue.java +62 -0
- package/tests/__output__/Script/RemoteObjectReference.java +62 -0
- package/tests/__output__/Script/RemoteReference.java +17 -0
- package/tests/__output__/Script/RemoteValue.java +36 -0
- package/tests/__output__/Script/RemovePreloadScriptParameters.java +50 -0
- package/tests/__output__/Script/ResultOwnership.java +35 -0
- package/tests/__output__/Script/ScriptModule.java +34 -0
- package/tests/__output__/Script/SerializationOptions.java +74 -0
- package/tests/__output__/Script/ServiceWorkerRealmInfo.java +50 -0
- package/tests/__output__/Script/SetLocalValue.java +62 -0
- package/tests/__output__/Script/SetRemoteValue.java +86 -0
- package/tests/__output__/Script/SharedReference.java +62 -0
- package/tests/__output__/Script/SharedWorkerRealmInfo.java +50 -0
- package/tests/__output__/Script/Source.java +62 -0
- package/tests/__output__/Script/SpecialNumber.java +37 -0
- package/tests/__output__/Script/StackFrame.java +86 -0
- package/tests/__output__/Script/StackTrace.java +50 -0
- package/tests/__output__/Script/StringValue.java +62 -0
- package/tests/__output__/Script/SymbolRemoteValue.java +74 -0
- package/tests/__output__/Script/Target.java +17 -0
- package/tests/__output__/Script/TypedArrayRemoteValue.java +74 -0
- package/tests/__output__/Script/UndefinedValue.java +50 -0
- package/tests/__output__/Script/WeakMapRemoteValue.java +74 -0
- package/tests/__output__/Script/WeakSetRemoteValue.java +74 -0
- package/tests/__output__/Script/WindowProxyProperties.java +50 -0
- package/tests/__output__/Script/WindowProxyRemoteValue.java +86 -0
- package/tests/__output__/Script/WindowRealmInfo.java +74 -0
- package/tests/__output__/Script/WorkerRealmInfo.java +50 -0
- package/tests/__output__/Script/WorkletRealmInfo.java +50 -0
- package/tests/__output__/Session/Capabilities.java +55 -0
- package/tests/__output__/Session/CapabilitiesRequest.java +62 -0
- package/tests/__output__/Session/CapabilityRequest.java +110 -0
- package/tests/__output__/Session/NewParameters.java +50 -0
- package/tests/__output__/Session/NewResult.java +62 -0
- package/tests/__output__/Session/ProxyConfiguration.java +20 -0
- package/tests/__output__/Session/SessionModule.java +34 -0
- package/tests/__output__/Session/StatusResult.java +62 -0
- package/tests/__output__/Session/SubscribeResult.java +50 -0
- package/tests/__output__/Session/SubscriptionRequest.java +74 -0
- package/tests/__output__/Session/UnsubscribeByAttributesRequest.java +62 -0
- package/tests/__output__/Session/UnsubscribeByIDRequest.java +50 -0
- package/tests/__output__/Session/UnsubscribeParameters.java +17 -0
- package/tests/__output__/Session/UserPromptHandler.java +110 -0
- package/tests/__output__/Session/UserPromptHandlerType.java +36 -0
- package/tests/__output__/Storage/BrowsingContextPartitionDescriptor.java +62 -0
- package/tests/__output__/Storage/CookieFilter.java +146 -0
- package/tests/__output__/Storage/DeleteCookiesParameters.java +62 -0
- package/tests/__output__/Storage/DeleteCookiesResult.java +50 -0
- package/tests/__output__/Storage/GetCookiesParameters.java +62 -0
- package/tests/__output__/Storage/GetCookiesResult.java +62 -0
- package/tests/__output__/Storage/PartialCookie.java +134 -0
- package/tests/__output__/Storage/PartitionDescriptor.java +17 -0
- package/tests/__output__/Storage/PartitionKey.java +62 -0
- package/tests/__output__/Storage/SetCookieParameters.java +62 -0
- package/tests/__output__/Storage/SetCookieResult.java +50 -0
- package/tests/__output__/Storage/StorageKeyPartitionDescriptor.java +74 -0
- package/tests/__output__/Storage/StorageModule.java +34 -0
- package/tests/__output__/WebExtension/ExtensionArchivePath.java +62 -0
- package/tests/__output__/WebExtension/ExtensionBase64Encoded.java +62 -0
- package/tests/__output__/WebExtension/ExtensionData.java +18 -0
- package/tests/__output__/WebExtension/ExtensionPath.java +62 -0
- package/tests/__output__/WebExtension/InstallParameters.java +50 -0
- package/tests/__output__/WebExtension/InstallResult.java +50 -0
- package/tests/__output__/WebExtension/UninstallParameters.java +50 -0
- package/tests/__output__/WebExtension/WebExtensionModule.java +34 -0
- package/tests/bidi.cddl +2511 -0
- package/tests/mod.test.ts +65 -0
- package/tsconfig.json +11 -0
|
@@ -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.input;
|
|
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 input.WheelScrollAction command
|
|
20
|
+
*/
|
|
21
|
+
public class WheelScrollAction implements WheelSourceAction {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Creates a new WheelScrollAction instance
|
|
25
|
+
*/
|
|
26
|
+
public WheelScrollAction(Integer x, Integer y, Integer deltaX, Integer deltaY, Long duration, Input.Origin origin) {
|
|
27
|
+
this.x = x;
|
|
28
|
+
this.y = y;
|
|
29
|
+
this.deltaX = deltaX;
|
|
30
|
+
this.deltaY = deltaY;
|
|
31
|
+
this.duration = duration;
|
|
32
|
+
this.origin = origin;
|
|
33
|
+
this.type = "scroll";
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
private final String type;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Gets the type property
|
|
40
|
+
* @return String value
|
|
41
|
+
*/
|
|
42
|
+
public String getType() {
|
|
43
|
+
return this.type;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
private final Integer x;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Gets the x property
|
|
50
|
+
* @return Integer value
|
|
51
|
+
*/
|
|
52
|
+
public Integer getX() {
|
|
53
|
+
return this.x;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
private final Integer y;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Gets the y property
|
|
60
|
+
* @return Integer value
|
|
61
|
+
*/
|
|
62
|
+
public Integer getY() {
|
|
63
|
+
return this.y;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
private final Integer deltaX;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Gets the deltaX property
|
|
70
|
+
* @return Integer value
|
|
71
|
+
*/
|
|
72
|
+
public Integer getDeltaX() {
|
|
73
|
+
return this.deltaX;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
private final Integer deltaY;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Gets the deltaY property
|
|
80
|
+
* @return Integer value
|
|
81
|
+
*/
|
|
82
|
+
public Integer getDeltaY() {
|
|
83
|
+
return this.deltaY;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
private final Long duration;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Gets the duration property
|
|
90
|
+
* @return Long value
|
|
91
|
+
*/
|
|
92
|
+
public Long getDuration() {
|
|
93
|
+
return this.duration;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
private final Input.Origin origin;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Gets the origin property
|
|
100
|
+
* @return Input.Origin value
|
|
101
|
+
*/
|
|
102
|
+
public Input.Origin getOrigin() {
|
|
103
|
+
return this.origin;
|
|
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("type", this.type);
|
|
113
|
+
toReturn.put("x", this.x);
|
|
114
|
+
toReturn.put("y", this.y);
|
|
115
|
+
toReturn.put("deltaX", this.deltaX);
|
|
116
|
+
toReturn.put("deltaY", this.deltaY);
|
|
117
|
+
toReturn.put("duration", this.duration);
|
|
118
|
+
toReturn.put("origin", this.origin);
|
|
119
|
+
return toReturn;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 input.WheelSourceAction which can be either of these classes:
|
|
12
|
+
* - input.PauseAction
|
|
13
|
+
* - input.WheelScrollAction
|
|
14
|
+
*/
|
|
15
|
+
public class WheelSourceAction {
|
|
16
|
+
|
|
17
|
+
}
|
|
@@ -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.input;
|
|
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 input.WheelSourceActions command
|
|
20
|
+
*/
|
|
21
|
+
public class WheelSourceActions implements SourceActions {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Creates a new WheelSourceActions instance
|
|
25
|
+
*/
|
|
26
|
+
public WheelSourceActions(String id, List<Input.WheelSourceAction> actions) {
|
|
27
|
+
this.id = id;
|
|
28
|
+
this.actions = actions;
|
|
29
|
+
this.type = "wheel";
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
private final String type;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Gets the type property
|
|
36
|
+
* @return String value
|
|
37
|
+
*/
|
|
38
|
+
public String getType() {
|
|
39
|
+
return this.type;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
private final String id;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Gets the id property
|
|
46
|
+
* @return String value
|
|
47
|
+
*/
|
|
48
|
+
public String getId() {
|
|
49
|
+
return this.id;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
private final List<Input.WheelSourceAction> actions;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Gets the actions property
|
|
56
|
+
* @return List<Input.WheelSourceAction> value
|
|
57
|
+
*/
|
|
58
|
+
public List<Input.WheelSourceAction> getActions() {
|
|
59
|
+
return this.actions;
|
|
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("type", this.type);
|
|
69
|
+
toReturn.put("id", this.id);
|
|
70
|
+
toReturn.put("actions", this.actions);
|
|
71
|
+
return toReturn;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
}
|
|
@@ -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.log;
|
|
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 log.BaseLogEntry command
|
|
20
|
+
*/
|
|
21
|
+
public class BaseLogEntry {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Creates a new BaseLogEntry instance
|
|
25
|
+
*/
|
|
26
|
+
public BaseLogEntry(Log.Level level, Script.Source source, Object text, Long timestamp, Script.StackTrace stackTrace) {
|
|
27
|
+
this.level = level;
|
|
28
|
+
this.source = source;
|
|
29
|
+
this.text = text;
|
|
30
|
+
this.timestamp = timestamp;
|
|
31
|
+
this.stackTrace = stackTrace;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
private final Log.Level level;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Gets the level property
|
|
38
|
+
* @return Log.Level value
|
|
39
|
+
*/
|
|
40
|
+
public Log.Level getLevel() {
|
|
41
|
+
return this.level;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
private final Script.Source source;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Gets the source property
|
|
48
|
+
* @return Script.Source value
|
|
49
|
+
*/
|
|
50
|
+
public Script.Source getSource() {
|
|
51
|
+
return this.source;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
private final Object text;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Gets the text property
|
|
58
|
+
* @return Object value
|
|
59
|
+
*/
|
|
60
|
+
public Object getText() {
|
|
61
|
+
return this.text;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
private final Long timestamp;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Gets the timestamp property
|
|
68
|
+
* @return Long value
|
|
69
|
+
*/
|
|
70
|
+
public Long getTimestamp() {
|
|
71
|
+
return this.timestamp;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
private final Script.StackTrace stackTrace;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Gets the stackTrace property
|
|
78
|
+
* @return Script.StackTrace value
|
|
79
|
+
*/
|
|
80
|
+
public Script.StackTrace getStackTrace() {
|
|
81
|
+
return this.stackTrace;
|
|
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("level", this.level);
|
|
91
|
+
toReturn.put("source", this.source);
|
|
92
|
+
toReturn.put("text", this.text);
|
|
93
|
+
toReturn.put("timestamp", this.timestamp);
|
|
94
|
+
toReturn.put("stackTrace", this.stackTrace);
|
|
95
|
+
return toReturn;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
}
|
|
@@ -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.log;
|
|
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 log.ConsoleLogEntry command
|
|
20
|
+
*/
|
|
21
|
+
public class ConsoleLogEntry implements Entry {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Creates a new ConsoleLogEntry instance
|
|
25
|
+
*/
|
|
26
|
+
public ConsoleLogEntry(String method, List<Script.RemoteValue> args) {
|
|
27
|
+
this.method = method;
|
|
28
|
+
this.args = args;
|
|
29
|
+
this.type = "console";
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
private final String type;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Gets the type property
|
|
36
|
+
* @return String value
|
|
37
|
+
*/
|
|
38
|
+
public String getType() {
|
|
39
|
+
return this.type;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
private final String method;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Gets the method property
|
|
46
|
+
* @return String value
|
|
47
|
+
*/
|
|
48
|
+
public String getMethod() {
|
|
49
|
+
return this.method;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
private final List<Script.RemoteValue> args;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Gets the args property
|
|
56
|
+
* @return List<Script.RemoteValue> value
|
|
57
|
+
*/
|
|
58
|
+
public List<Script.RemoteValue> getArgs() {
|
|
59
|
+
return this.args;
|
|
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("type", this.type);
|
|
69
|
+
toReturn.put("method", this.method);
|
|
70
|
+
toReturn.put("args", this.args);
|
|
71
|
+
return toReturn;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 log.Entry which can be either of these classes:
|
|
12
|
+
* - log.GenericLogEntry
|
|
13
|
+
* - log.ConsoleLogEntry
|
|
14
|
+
* - log.JavascriptLogEntry
|
|
15
|
+
*/
|
|
16
|
+
public class Entry {
|
|
17
|
+
|
|
18
|
+
}
|
|
@@ -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.log;
|
|
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 log.GenericLogEntry command
|
|
20
|
+
*/
|
|
21
|
+
public class GenericLogEntry implements Entry {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Creates a new GenericLogEntry instance
|
|
25
|
+
*/
|
|
26
|
+
public GenericLogEntry(String type) {
|
|
27
|
+
this.type = type;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
private final String type;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Gets the type property
|
|
34
|
+
* @return String value
|
|
35
|
+
*/
|
|
36
|
+
public String getType() {
|
|
37
|
+
return this.type;
|
|
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("type", this.type);
|
|
47
|
+
return toReturn;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
}
|
|
@@ -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.log;
|
|
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 log.JavascriptLogEntry command
|
|
20
|
+
*/
|
|
21
|
+
public class JavascriptLogEntry implements Entry {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Creates a new JavascriptLogEntry instance
|
|
25
|
+
*/
|
|
26
|
+
public JavascriptLogEntry() {
|
|
27
|
+
this.type = "javascript";
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
private final String type;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Gets the type property
|
|
34
|
+
* @return String value
|
|
35
|
+
*/
|
|
36
|
+
public String getType() {
|
|
37
|
+
return this.type;
|
|
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("type", this.type);
|
|
47
|
+
return toReturn;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
* Represents Level in WebDriver BiDi protocol
|
|
11
|
+
* as enum of "debug" / "info" / "warn" / "error"
|
|
12
|
+
*/
|
|
13
|
+
public enum Level {
|
|
14
|
+
DEBUG("debug");
|
|
15
|
+
INFO("info");
|
|
16
|
+
WARN("warn");
|
|
17
|
+
ERROR("error");
|
|
18
|
+
|
|
19
|
+
private final String value;
|
|
20
|
+
|
|
21
|
+
Level(String value) {
|
|
22
|
+
this.value = value;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
public String getValue() {
|
|
26
|
+
return value;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
public static Level fromString(String text) {
|
|
30
|
+
for (Level level : Level.values()) {
|
|
31
|
+
if (level.value.equalsIgnoreCase(text)) {
|
|
32
|
+
return level;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
throw new IllegalArgumentException("No Level with value: " + text);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.log;
|
|
10
|
+
|
|
11
|
+
import java.util.Map;
|
|
12
|
+
import java.util.HashMap;
|
|
13
|
+
import org.openqa.selenium.bidi.Command;
|
|
14
|
+
import org.openqa.selenium.bidirectional.EmptyResult;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Auto generated class for running WebDriver BiDi log commands in Java
|
|
18
|
+
*/
|
|
19
|
+
public class LogModule {
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* WebDriver Bidi command to send command method "log.entryAdded" with parameters.
|
|
23
|
+
* @url https://w3c.github.io/webdriver-bidi/#command-log-entryAdded
|
|
24
|
+
* @param parameters `Entry` {@link https://w3c.github.io/webdriver-bidi/#command-log-entryAdded | command parameter}
|
|
25
|
+
* @return Command object with result type for log.entryAdded
|
|
26
|
+
*/
|
|
27
|
+
public Command<org.openqa.selenium.bidirectional.EmptyResult> EntryAdded (Entry parameters) {
|
|
28
|
+
return new Command<>(
|
|
29
|
+
"log.entryAdded",
|
|
30
|
+
parameters.asMap(),
|
|
31
|
+
org.openqa.selenium.bidirectional.EmptyResult.class
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -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.network;
|
|
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 network.AddInterceptParameters command
|
|
20
|
+
*/
|
|
21
|
+
public class AddInterceptParameters {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Creates a new AddInterceptParameters instance
|
|
25
|
+
*/
|
|
26
|
+
public AddInterceptParameters(List<Network.InterceptPhase> phases, List<String> contexts, List<Network.UrlPattern> urlPatterns) {
|
|
27
|
+
this.phases = phases;
|
|
28
|
+
this.contexts = contexts;
|
|
29
|
+
this.urlPatterns = urlPatterns;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
private final List<Network.InterceptPhase> phases;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Gets the phases property
|
|
36
|
+
* @return List<Network.InterceptPhase> value
|
|
37
|
+
*/
|
|
38
|
+
public List<Network.InterceptPhase> getPhases() {
|
|
39
|
+
return this.phases;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
private final List<String> contexts;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Gets the contexts property
|
|
46
|
+
* @return List<String> value
|
|
47
|
+
*/
|
|
48
|
+
public List<String> getContexts() {
|
|
49
|
+
return this.contexts;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
private final List<Network.UrlPattern> urlPatterns;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Gets the urlPatterns property
|
|
56
|
+
* @return List<Network.UrlPattern> value
|
|
57
|
+
*/
|
|
58
|
+
public List<Network.UrlPattern> getUrlPatterns() {
|
|
59
|
+
return this.urlPatterns;
|
|
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("phases", this.phases);
|
|
69
|
+
toReturn.put("contexts", this.contexts);
|
|
70
|
+
toReturn.put("urlPatterns", this.urlPatterns);
|
|
71
|
+
return toReturn;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
}
|
|
@@ -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.network;
|
|
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 network.AddInterceptResult command
|
|
20
|
+
*/
|
|
21
|
+
public class AddInterceptResult {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Creates a new AddInterceptResult instance
|
|
25
|
+
*/
|
|
26
|
+
public AddInterceptResult(Network.Intercept intercept) {
|
|
27
|
+
this.intercept = intercept;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
private final Network.Intercept intercept;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Gets the intercept property
|
|
34
|
+
* @return Network.Intercept value
|
|
35
|
+
*/
|
|
36
|
+
public Network.Intercept getIntercept() {
|
|
37
|
+
return this.intercept;
|
|
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("intercept", this.intercept);
|
|
47
|
+
return toReturn;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
}
|