pure-patchright 1.62.3__py3-none-any.whl
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.
- patchright/__init__.py +5 -0
- patchright/__main__.py +18 -0
- patchright/_impl/__init__.py +0 -0
- patchright/_impl/__pyinstaller/__init__.py +20 -0
- patchright/_impl/__pyinstaller/hook-playwright.async_api.py +3 -0
- patchright/_impl/__pyinstaller/hook-playwright.sync_api.py +3 -0
- patchright/_impl/_api_structures.py +343 -0
- patchright/_impl/_artifact.py +46 -0
- patchright/_impl/_assertions.py +1014 -0
- patchright/_impl/_async_base.py +88 -0
- patchright/_impl/_browser.py +267 -0
- patchright/_impl/_browser_context.py +759 -0
- patchright/_impl/_browser_type.py +336 -0
- patchright/_impl/_cdp_session.py +25 -0
- patchright/_impl/_clock.py +62 -0
- patchright/_impl/_connection.py +686 -0
- patchright/_impl/_console_message.py +83 -0
- patchright/_impl/_credentials.py +38 -0
- patchright/_impl/_debugger.py +37 -0
- patchright/_impl/_dialog.py +45 -0
- patchright/_impl/_disposable.py +71 -0
- patchright/_impl/_download.py +49 -0
- patchright/_impl/_driver.py +24 -0
- patchright/_impl/_element_handle.py +446 -0
- patchright/_impl/_errors.py +46 -0
- patchright/_impl/_event_context_manager.py +19 -0
- patchright/_impl/_fetch.py +592 -0
- patchright/_impl/_file_chooser.py +42 -0
- patchright/_impl/_form_data.py +19 -0
- patchright/_impl/_frame.py +959 -0
- patchright/_impl/_glob.py +47 -0
- patchright/_impl/_greenlets.py +35 -0
- patchright/_impl/_har_router.py +98 -0
- patchright/_impl/_helper.py +551 -0
- patchright/_impl/_impl_to_api_mapping.py +141 -0
- patchright/_impl/_input.py +85 -0
- patchright/_impl/_js_handle.py +297 -0
- patchright/_impl/_json_pipe.py +55 -0
- patchright/_impl/_local_utils.py +73 -0
- patchright/_impl/_locator.py +894 -0
- patchright/_impl/_map.py +18 -0
- patchright/_impl/_network.py +953 -0
- patchright/_impl/_object_factory.py +93 -0
- patchright/_impl/_page.py +1601 -0
- patchright/_impl/_path_utils.py +13 -0
- patchright/_impl/_playwright.py +43 -0
- patchright/_impl/_screencast.py +149 -0
- patchright/_impl/_selectors.py +48 -0
- patchright/_impl/_set_input_files_helpers.py +134 -0
- patchright/_impl/_str_utils.py +59 -0
- patchright/_impl/_stream.py +31 -0
- patchright/_impl/_sync_base.py +130 -0
- patchright/_impl/_tracing.py +243 -0
- patchright/_impl/_transport.py +151 -0
- patchright/_impl/_video.py +41 -0
- patchright/_impl/_waiter.py +168 -0
- patchright/_impl/_web_error.py +33 -0
- patchright/_impl/_web_storage.py +41 -0
- patchright/_impl/_writable_stream.py +26 -0
- patchright/_repo_version.py +1 -0
- patchright/async_api/__init__.py +234 -0
- patchright/async_api/_context_manager.py +38 -0
- patchright/async_api/_generated.py +23396 -0
- patchright/driver/README.md +1 -0
- patchright/driver/package/README.md +3 -0
- patchright/driver/package/ThirdPartyNotices.txt +13 -0
- patchright/driver/package/bin/install_media_pack.ps1 +5 -0
- patchright/driver/package/bin/install_webkit_wsl.ps1 +33 -0
- patchright/driver/package/bin/reinstall_chrome_beta_linux.sh +42 -0
- patchright/driver/package/bin/reinstall_chrome_beta_mac.sh +13 -0
- patchright/driver/package/bin/reinstall_chrome_beta_win.ps1 +24 -0
- patchright/driver/package/bin/reinstall_chrome_stable_linux.sh +42 -0
- patchright/driver/package/bin/reinstall_chrome_stable_mac.sh +12 -0
- patchright/driver/package/bin/reinstall_chrome_stable_win.ps1 +24 -0
- patchright/driver/package/bin/reinstall_msedge_beta_linux.sh +48 -0
- patchright/driver/package/bin/reinstall_msedge_beta_mac.sh +11 -0
- patchright/driver/package/bin/reinstall_msedge_beta_win.ps1 +23 -0
- patchright/driver/package/bin/reinstall_msedge_dev_linux.sh +48 -0
- patchright/driver/package/bin/reinstall_msedge_dev_mac.sh +11 -0
- patchright/driver/package/bin/reinstall_msedge_dev_win.ps1 +23 -0
- patchright/driver/package/bin/reinstall_msedge_stable_linux.sh +48 -0
- patchright/driver/package/bin/reinstall_msedge_stable_mac.sh +11 -0
- patchright/driver/package/bin/reinstall_msedge_stable_win.ps1 +24 -0
- patchright/driver/package/browsers.json +75 -0
- patchright/driver/package/cli.js +21 -0
- patchright/driver/package/index.js +17 -0
- patchright/driver/package/index.mjs +28 -0
- patchright/driver/package/lib/bootstrap.js +88 -0
- patchright/driver/package/lib/coreBundle.js +77498 -0
- patchright/driver/package/lib/entry/cliDaemon.js +5 -0
- patchright/driver/package/lib/entry/dashboardApp.js +3 -0
- patchright/driver/package/lib/entry/mcp.js +10 -0
- patchright/driver/package/lib/entry/oopBrowserDownload.js +3 -0
- patchright/driver/package/lib/package.js +50 -0
- patchright/driver/package/lib/server/chromium/appIcon.png +0 -0
- patchright/driver/package/lib/server/electron/loader.js +107 -0
- patchright/driver/package/lib/serverRegistry.js +7347 -0
- patchright/driver/package/lib/serverRegistry.js.LICENSE +354 -0
- patchright/driver/package/lib/tools/cli-client/channelSessions.js +141 -0
- patchright/driver/package/lib/tools/cli-client/cli.js +6 -0
- patchright/driver/package/lib/tools/cli-client/help.json +708 -0
- patchright/driver/package/lib/tools/cli-client/minimist.js +128 -0
- patchright/driver/package/lib/tools/cli-client/output.js +343 -0
- patchright/driver/package/lib/tools/cli-client/program.js +404 -0
- patchright/driver/package/lib/tools/cli-client/registry.js +176 -0
- patchright/driver/package/lib/tools/cli-client/session.js +258 -0
- patchright/driver/package/lib/tools/dashboard/appIcon.png +0 -0
- patchright/driver/package/lib/tools/skills/playwright-cli/SKILL.md +420 -0
- patchright/driver/package/lib/tools/skills/playwright-cli/references/element-attributes.md +23 -0
- patchright/driver/package/lib/tools/skills/playwright-cli/references/playwright-tests.md +39 -0
- patchright/driver/package/lib/tools/skills/playwright-cli/references/request-mocking.md +87 -0
- patchright/driver/package/lib/tools/skills/playwright-cli/references/running-code.md +241 -0
- patchright/driver/package/lib/tools/skills/playwright-cli/references/session-management.md +225 -0
- patchright/driver/package/lib/tools/skills/playwright-cli/references/storage-state.md +275 -0
- patchright/driver/package/lib/tools/skills/playwright-cli/references/test-generation.md +433 -0
- patchright/driver/package/lib/tools/skills/playwright-cli/references/tracing.md +139 -0
- patchright/driver/package/lib/tools/skills/playwright-cli/references/video-recording.md +143 -0
- patchright/driver/package/lib/tools/skills/playwright-component-testing/SKILL.md +143 -0
- patchright/driver/package/lib/tools/skills/playwright-component-testing/references/gallery-spec.md +144 -0
- patchright/driver/package/lib/tools/skills/playwright-component-testing/references/migration.md +85 -0
- patchright/driver/package/lib/tools/skills/playwright-component-testing/references/react.md +67 -0
- patchright/driver/package/lib/tools/skills/playwright-component-testing/references/vue.md +75 -0
- patchright/driver/package/lib/tools/skills/playwright-trace/SKILL.md +171 -0
- patchright/driver/package/lib/tools/utils/extension.js +101 -0
- patchright/driver/package/lib/tools/utils/socketConnection.js +108 -0
- patchright/driver/package/lib/utilsBundle.js +90764 -0
- patchright/driver/package/lib/utilsBundle.js.LICENSE +2179 -0
- patchright/driver/package/lib/webp_codec.LICENSE +173 -0
- patchright/driver/package/lib/webp_codec.wasm +0 -0
- patchright/driver/package/lib/xdg-open +1267 -0
- patchright/driver/package/package.json +34 -0
- patchright/py.typed +0 -0
- patchright/sync_api/__init__.py +234 -0
- patchright/sync_api/_context_manager.py +73 -0
- patchright/sync_api/_generated.py +23590 -0
- pure_patchright-1.62.3.dist-info/LICENSE +201 -0
- pure_patchright-1.62.3.dist-info/METADATA +96 -0
- pure_patchright-1.62.3.dist-info/RECORD +142 -0
- pure_patchright-1.62.3.dist-info/WHEEL +4 -0
- pure_patchright-1.62.3.dist-info/entry_points.txt +5 -0
- pure_patchright-1.62.3.dist-info/licenses/LICENSE +202 -0
- pure_patchright-1.62.3.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
from typing import Dict, cast
|
|
2
|
+
from patchright._impl._artifact import Artifact
|
|
3
|
+
from patchright._impl._browser import Browser
|
|
4
|
+
from patchright._impl._browser_context import BrowserContext
|
|
5
|
+
from patchright._impl._browser_type import BrowserType
|
|
6
|
+
from patchright._impl._cdp_session import CDPSession
|
|
7
|
+
from patchright._impl._connection import ChannelOwner
|
|
8
|
+
from patchright._impl._debugger import Debugger
|
|
9
|
+
from patchright._impl._dialog import Dialog
|
|
10
|
+
from patchright._impl._disposable import Disposable
|
|
11
|
+
from patchright._impl._element_handle import ElementHandle
|
|
12
|
+
from patchright._impl._fetch import APIRequestContext
|
|
13
|
+
from patchright._impl._frame import Frame
|
|
14
|
+
from patchright._impl._js_handle import JSHandle
|
|
15
|
+
from patchright._impl._local_utils import LocalUtils
|
|
16
|
+
from patchright._impl._network import (
|
|
17
|
+
Request,
|
|
18
|
+
Response,
|
|
19
|
+
Route,
|
|
20
|
+
WebSocket,
|
|
21
|
+
WebSocketRoute,
|
|
22
|
+
)
|
|
23
|
+
from patchright._impl._page import BindingCall, Page, Worker
|
|
24
|
+
from patchright._impl._playwright import Playwright
|
|
25
|
+
from patchright._impl._stream import Stream
|
|
26
|
+
from patchright._impl._tracing import Tracing
|
|
27
|
+
from patchright._impl._writable_stream import WritableStream
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class DummyObject(ChannelOwner):
|
|
31
|
+
def __init__(
|
|
32
|
+
self, parent: ChannelOwner, type: str, guid: str, initializer: Dict
|
|
33
|
+
) -> None:
|
|
34
|
+
super().__init__(parent, type, guid, initializer)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def create_remote_object(
|
|
38
|
+
parent: ChannelOwner, type: str, guid: str, initializer: Dict
|
|
39
|
+
) -> ChannelOwner:
|
|
40
|
+
if type == "Artifact":
|
|
41
|
+
return Artifact(parent, type, guid, initializer)
|
|
42
|
+
if type == "APIRequestContext":
|
|
43
|
+
return APIRequestContext(parent, type, guid, initializer)
|
|
44
|
+
if type == "BindingCall":
|
|
45
|
+
return BindingCall(parent, type, guid, initializer)
|
|
46
|
+
if type == "Browser":
|
|
47
|
+
return Browser(cast(BrowserType, parent), type, guid, initializer)
|
|
48
|
+
if type == "BrowserType":
|
|
49
|
+
return BrowserType(parent, type, guid, initializer)
|
|
50
|
+
if type == "BrowserContext":
|
|
51
|
+
return BrowserContext(parent, type, guid, initializer)
|
|
52
|
+
if type == "CDPSession":
|
|
53
|
+
return CDPSession(parent, type, guid, initializer)
|
|
54
|
+
if type == "Debugger":
|
|
55
|
+
return Debugger(parent, type, guid, initializer)
|
|
56
|
+
if type == "Dialog":
|
|
57
|
+
return Dialog(parent, type, guid, initializer)
|
|
58
|
+
if type == "Disposable":
|
|
59
|
+
return Disposable(parent, type, guid, initializer)
|
|
60
|
+
if type == "ElementHandle":
|
|
61
|
+
return ElementHandle(parent, type, guid, initializer)
|
|
62
|
+
if type == "Frame":
|
|
63
|
+
return Frame(parent, type, guid, initializer)
|
|
64
|
+
if type == "JSHandle":
|
|
65
|
+
return JSHandle(parent, type, guid, initializer)
|
|
66
|
+
if type == "LocalUtils":
|
|
67
|
+
local_utils = LocalUtils(parent, type, guid, initializer)
|
|
68
|
+
if not local_utils._connection._local_utils:
|
|
69
|
+
local_utils._connection._local_utils = local_utils
|
|
70
|
+
return local_utils
|
|
71
|
+
if type == "Page":
|
|
72
|
+
return Page(parent, type, guid, initializer)
|
|
73
|
+
if type == "Playwright":
|
|
74
|
+
return Playwright(parent, type, guid, initializer)
|
|
75
|
+
if type == "Request":
|
|
76
|
+
return Request(parent, type, guid, initializer)
|
|
77
|
+
if type == "Response":
|
|
78
|
+
return Response(parent, type, guid, initializer)
|
|
79
|
+
if type == "Route":
|
|
80
|
+
return Route(parent, type, guid, initializer)
|
|
81
|
+
if type == "Stream":
|
|
82
|
+
return Stream(parent, type, guid, initializer)
|
|
83
|
+
if type == "Tracing":
|
|
84
|
+
return Tracing(parent, type, guid, initializer)
|
|
85
|
+
if type == "WebSocket":
|
|
86
|
+
return WebSocket(parent, type, guid, initializer)
|
|
87
|
+
if type == "WebSocketRoute":
|
|
88
|
+
return WebSocketRoute(parent, type, guid, initializer)
|
|
89
|
+
if type == "Worker":
|
|
90
|
+
return Worker(parent, type, guid, initializer)
|
|
91
|
+
if type == "WritableStream":
|
|
92
|
+
return WritableStream(parent, type, guid, initializer)
|
|
93
|
+
return DummyObject(parent, type, guid, initializer)
|