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,182 @@
|
|
|
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.ResponseData command
|
|
20
|
+
*/
|
|
21
|
+
public class ResponseData {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Creates a new ResponseData instance
|
|
25
|
+
*/
|
|
26
|
+
public ResponseData(String url, String protocol, Long status, String statusText, Boolean fromCache, List<Network.Header> headers, String mimeType, Long bytesReceived, Object headersSize, Object bodySize, Network.ResponseContent content, List<Network.AuthChallenge> authChallenges) {
|
|
27
|
+
this.url = url;
|
|
28
|
+
this.protocol = protocol;
|
|
29
|
+
this.status = status;
|
|
30
|
+
this.statusText = statusText;
|
|
31
|
+
this.fromCache = fromCache;
|
|
32
|
+
this.headers = headers;
|
|
33
|
+
this.mimeType = mimeType;
|
|
34
|
+
this.bytesReceived = bytesReceived;
|
|
35
|
+
this.headersSize = headersSize;
|
|
36
|
+
this.bodySize = bodySize;
|
|
37
|
+
this.content = content;
|
|
38
|
+
this.authChallenges = authChallenges;
|
|
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
|
+
private final String protocol;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Gets the protocol property
|
|
55
|
+
* @return String value
|
|
56
|
+
*/
|
|
57
|
+
public String getProtocol() {
|
|
58
|
+
return this.protocol;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
private final Long status;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Gets the status property
|
|
65
|
+
* @return Long value
|
|
66
|
+
*/
|
|
67
|
+
public Long getStatus() {
|
|
68
|
+
return this.status;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
private final String statusText;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Gets the statusText property
|
|
75
|
+
* @return String value
|
|
76
|
+
*/
|
|
77
|
+
public String getStatusText() {
|
|
78
|
+
return this.statusText;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
private final Boolean fromCache;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Gets the fromCache property
|
|
85
|
+
* @return Boolean value
|
|
86
|
+
*/
|
|
87
|
+
public Boolean getFromCache() {
|
|
88
|
+
return this.fromCache;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
private final List<Network.Header> headers;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Gets the headers property
|
|
95
|
+
* @return List<Network.Header> value
|
|
96
|
+
*/
|
|
97
|
+
public List<Network.Header> getHeaders() {
|
|
98
|
+
return this.headers;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
private final String mimeType;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Gets the mimeType property
|
|
105
|
+
* @return String value
|
|
106
|
+
*/
|
|
107
|
+
public String getMimeType() {
|
|
108
|
+
return this.mimeType;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
private final Long bytesReceived;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Gets the bytesReceived property
|
|
115
|
+
* @return Long value
|
|
116
|
+
*/
|
|
117
|
+
public Long getBytesReceived() {
|
|
118
|
+
return this.bytesReceived;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
private final Object headersSize;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Gets the headersSize property
|
|
125
|
+
* @return Object value
|
|
126
|
+
*/
|
|
127
|
+
public Object getHeadersSize() {
|
|
128
|
+
return this.headersSize;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
private final Object bodySize;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Gets the bodySize property
|
|
135
|
+
* @return Object value
|
|
136
|
+
*/
|
|
137
|
+
public Object getBodySize() {
|
|
138
|
+
return this.bodySize;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
private final Network.ResponseContent content;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Gets the content property
|
|
145
|
+
* @return Network.ResponseContent value
|
|
146
|
+
*/
|
|
147
|
+
public Network.ResponseContent getContent() {
|
|
148
|
+
return this.content;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
private final List<Network.AuthChallenge> authChallenges;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Gets the authChallenges property
|
|
155
|
+
* @return List<Network.AuthChallenge> value
|
|
156
|
+
*/
|
|
157
|
+
public List<Network.AuthChallenge> getAuthChallenges() {
|
|
158
|
+
return this.authChallenges;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Converts this object to a map for use with BiDi protocol
|
|
163
|
+
* @return Map representation of this object
|
|
164
|
+
*/
|
|
165
|
+
public Map<String, Object> asMap() {
|
|
166
|
+
Map<String, Object> toReturn = new HashMap<>();
|
|
167
|
+
toReturn.put("url", this.url);
|
|
168
|
+
toReturn.put("protocol", this.protocol);
|
|
169
|
+
toReturn.put("status", this.status);
|
|
170
|
+
toReturn.put("statusText", this.statusText);
|
|
171
|
+
toReturn.put("fromCache", this.fromCache);
|
|
172
|
+
toReturn.put("headers", this.headers);
|
|
173
|
+
toReturn.put("mimeType", this.mimeType);
|
|
174
|
+
toReturn.put("bytesReceived", this.bytesReceived);
|
|
175
|
+
toReturn.put("headersSize", this.headersSize);
|
|
176
|
+
toReturn.put("bodySize", this.bodySize);
|
|
177
|
+
toReturn.put("content", this.content);
|
|
178
|
+
toReturn.put("authChallenges", this.authChallenges);
|
|
179
|
+
return toReturn;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
}
|
|
@@ -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.ResponseStartedParameters command
|
|
20
|
+
*/
|
|
21
|
+
public class ResponseStartedParameters {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Creates a new ResponseStartedParameters instance
|
|
25
|
+
*/
|
|
26
|
+
public ResponseStartedParameters(Network.ResponseData response) {
|
|
27
|
+
this.response = response;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
private final Network.ResponseData response;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Gets the response property
|
|
34
|
+
* @return Network.ResponseData value
|
|
35
|
+
*/
|
|
36
|
+
public Network.ResponseData getResponse() {
|
|
37
|
+
return this.response;
|
|
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("response", this.response);
|
|
47
|
+
return toReturn;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 SameSite in WebDriver BiDi protocol
|
|
11
|
+
* as enum of "strict" / "lax" / "none"
|
|
12
|
+
*/
|
|
13
|
+
public enum SameSite {
|
|
14
|
+
STRICT("strict");
|
|
15
|
+
LAX("lax");
|
|
16
|
+
NONE("none");
|
|
17
|
+
|
|
18
|
+
private final String value;
|
|
19
|
+
|
|
20
|
+
SameSite(String value) {
|
|
21
|
+
this.value = value;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
public String getValue() {
|
|
25
|
+
return value;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public static SameSite fromString(String text) {
|
|
29
|
+
for (SameSite samesite : SameSite.values()) {
|
|
30
|
+
if (samesite.value.equalsIgnoreCase(text)) {
|
|
31
|
+
return samesite;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
throw new IllegalArgumentException("No SameSite with value: " + text);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -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.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.SetCacheBehaviorParameters command
|
|
20
|
+
*/
|
|
21
|
+
public class SetCacheBehaviorParameters {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Creates a new SetCacheBehaviorParameters instance
|
|
25
|
+
*/
|
|
26
|
+
public SetCacheBehaviorParameters(Object cacheBehavior, List<String> contexts) {
|
|
27
|
+
this.cacheBehavior = cacheBehavior;
|
|
28
|
+
this.contexts = contexts;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
private final Object cacheBehavior;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Gets the cacheBehavior property
|
|
35
|
+
* @return Object value
|
|
36
|
+
*/
|
|
37
|
+
public Object getCacheBehavior() {
|
|
38
|
+
return this.cacheBehavior;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
private final List<String> contexts;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Gets the contexts property
|
|
45
|
+
* @return List<String> value
|
|
46
|
+
*/
|
|
47
|
+
public List<String> getContexts() {
|
|
48
|
+
return this.contexts;
|
|
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("cacheBehavior", this.cacheBehavior);
|
|
58
|
+
toReturn.put("contexts", this.contexts);
|
|
59
|
+
return toReturn;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
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.SetCookieHeader command
|
|
20
|
+
*/
|
|
21
|
+
public class SetCookieHeader {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Creates a new SetCookieHeader instance
|
|
25
|
+
*/
|
|
26
|
+
public SetCookieHeader(String name, Network.BytesValue value, String domain, Boolean httpOnly, String expiry, Integer maxAge, String path, Network.SameSite sameSite, Boolean secure) {
|
|
27
|
+
this.name = name;
|
|
28
|
+
this.value = value;
|
|
29
|
+
this.domain = domain;
|
|
30
|
+
this.httpOnly = httpOnly;
|
|
31
|
+
this.expiry = expiry;
|
|
32
|
+
this.maxAge = maxAge;
|
|
33
|
+
this.path = path;
|
|
34
|
+
this.sameSite = sameSite;
|
|
35
|
+
this.secure = secure;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
private final String name;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Gets the name property
|
|
42
|
+
* @return String value
|
|
43
|
+
*/
|
|
44
|
+
public String getName() {
|
|
45
|
+
return this.name;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
private final Network.BytesValue value;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Gets the value property
|
|
52
|
+
* @return Network.BytesValue value
|
|
53
|
+
*/
|
|
54
|
+
public Network.BytesValue getValue() {
|
|
55
|
+
return this.value;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
private final String domain;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Gets the domain property
|
|
62
|
+
* @return String value
|
|
63
|
+
*/
|
|
64
|
+
public String getDomain() {
|
|
65
|
+
return this.domain;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
private final Boolean httpOnly;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Gets the httpOnly property
|
|
72
|
+
* @return Boolean value
|
|
73
|
+
*/
|
|
74
|
+
public Boolean getHttpOnly() {
|
|
75
|
+
return this.httpOnly;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
private final String expiry;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Gets the expiry property
|
|
82
|
+
* @return String value
|
|
83
|
+
*/
|
|
84
|
+
public String getExpiry() {
|
|
85
|
+
return this.expiry;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
private final Integer maxAge;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Gets the maxAge property
|
|
92
|
+
* @return Integer value
|
|
93
|
+
*/
|
|
94
|
+
public Integer getMaxAge() {
|
|
95
|
+
return this.maxAge;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
private final String path;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Gets the path property
|
|
102
|
+
* @return String value
|
|
103
|
+
*/
|
|
104
|
+
public String getPath() {
|
|
105
|
+
return this.path;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
private final Network.SameSite sameSite;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Gets the sameSite property
|
|
112
|
+
* @return Network.SameSite value
|
|
113
|
+
*/
|
|
114
|
+
public Network.SameSite getSameSite() {
|
|
115
|
+
return this.sameSite;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
private final Boolean secure;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Gets the secure property
|
|
122
|
+
* @return Boolean value
|
|
123
|
+
*/
|
|
124
|
+
public Boolean getSecure() {
|
|
125
|
+
return this.secure;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Converts this object to a map for use with BiDi protocol
|
|
130
|
+
* @return Map representation of this object
|
|
131
|
+
*/
|
|
132
|
+
public Map<String, Object> asMap() {
|
|
133
|
+
Map<String, Object> toReturn = new HashMap<>();
|
|
134
|
+
toReturn.put("name", this.name);
|
|
135
|
+
toReturn.put("value", this.value);
|
|
136
|
+
toReturn.put("domain", this.domain);
|
|
137
|
+
toReturn.put("httpOnly", this.httpOnly);
|
|
138
|
+
toReturn.put("expiry", this.expiry);
|
|
139
|
+
toReturn.put("maxAge", this.maxAge);
|
|
140
|
+
toReturn.put("path", this.path);
|
|
141
|
+
toReturn.put("sameSite", this.sameSite);
|
|
142
|
+
toReturn.put("secure", this.secure);
|
|
143
|
+
return toReturn;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
}
|
|
@@ -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.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.StringValue command
|
|
20
|
+
*/
|
|
21
|
+
public class StringValue implements BytesValue {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Creates a new StringValue instance
|
|
25
|
+
*/
|
|
26
|
+
public StringValue(String value) {
|
|
27
|
+
this.value = value;
|
|
28
|
+
this.type = "string";
|
|
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 String value;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Gets the value property
|
|
45
|
+
* @return String value
|
|
46
|
+
*/
|
|
47
|
+
public String getValue() {
|
|
48
|
+
return this.value;
|
|
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("value", this.value);
|
|
59
|
+
return toReturn;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
}
|
|
@@ -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 network.UrlPattern which can be either of these classes:
|
|
12
|
+
* - network.UrlPatternPattern
|
|
13
|
+
* - network.UrlPatternString
|
|
14
|
+
*/
|
|
15
|
+
public class UrlPattern {
|
|
16
|
+
|
|
17
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
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.UrlPatternPattern command
|
|
20
|
+
*/
|
|
21
|
+
public class UrlPatternPattern implements UrlPattern {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Creates a new UrlPatternPattern instance
|
|
25
|
+
*/
|
|
26
|
+
public UrlPatternPattern(String protocol, String hostname, String port, String pathname, String search) {
|
|
27
|
+
this.protocol = protocol;
|
|
28
|
+
this.hostname = hostname;
|
|
29
|
+
this.port = port;
|
|
30
|
+
this.pathname = pathname;
|
|
31
|
+
this.search = search;
|
|
32
|
+
this.type = "pattern";
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
private final String type;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Gets the type property
|
|
39
|
+
* @return String value
|
|
40
|
+
*/
|
|
41
|
+
public String getType() {
|
|
42
|
+
return this.type;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
private final String protocol;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Gets the protocol property
|
|
49
|
+
* @return String value
|
|
50
|
+
*/
|
|
51
|
+
public String getProtocol() {
|
|
52
|
+
return this.protocol;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
private final String hostname;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Gets the hostname property
|
|
59
|
+
* @return String value
|
|
60
|
+
*/
|
|
61
|
+
public String getHostname() {
|
|
62
|
+
return this.hostname;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
private final String port;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Gets the port property
|
|
69
|
+
* @return String value
|
|
70
|
+
*/
|
|
71
|
+
public String getPort() {
|
|
72
|
+
return this.port;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
private final String pathname;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Gets the pathname property
|
|
79
|
+
* @return String value
|
|
80
|
+
*/
|
|
81
|
+
public String getPathname() {
|
|
82
|
+
return this.pathname;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
private final String search;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Gets the search property
|
|
89
|
+
* @return String value
|
|
90
|
+
*/
|
|
91
|
+
public String getSearch() {
|
|
92
|
+
return this.search;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Converts this object to a map for use with BiDi protocol
|
|
97
|
+
* @return Map representation of this object
|
|
98
|
+
*/
|
|
99
|
+
public Map<String, Object> asMap() {
|
|
100
|
+
Map<String, Object> toReturn = new HashMap<>();
|
|
101
|
+
toReturn.put("type", this.type);
|
|
102
|
+
toReturn.put("protocol", this.protocol);
|
|
103
|
+
toReturn.put("hostname", this.hostname);
|
|
104
|
+
toReturn.put("port", this.port);
|
|
105
|
+
toReturn.put("pathname", this.pathname);
|
|
106
|
+
toReturn.put("search", this.search);
|
|
107
|
+
return toReturn;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
}
|