forked from microsoft/playwright-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexpected_api_mismatch.txt
More file actions
138 lines (122 loc) · 14.1 KB
/
expected_api_mismatch.txt
File metadata and controls
138 lines (122 loc) · 14.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# Missing methods
Method not implemented: Browser.newBrowserCDPSession
Method not implemented: Browser.startTracing
Method not implemented: Browser.stopTracing
Method not implemented: BrowserContext.backgroundPages
Method not implemented: BrowserContext.newCDPSession
Method not implemented: BrowserContext.serviceWorkers
Method not implemented: BrowserContext.setHTTPCredentials
Method not implemented: BrowserServer.close
Method not implemented: BrowserServer.kill
Method not implemented: BrowserServer.process
Method not implemented: BrowserServer.wsEndpoint
Method not implemented: BrowserType.launchServer
Method not implemented: Coverage.startCSSCoverage
Method not implemented: Coverage.startJSCoverage
Method not implemented: Coverage.stopCSSCoverage
Method not implemented: Coverage.stopJSCoverage
Method not implemented: Download.createReadStream
Method not implemented: Logger.isEnabled
Method not implemented: Logger.log
Method not implemented: Page.coverage
# Parameter overloads
Parameter not documented: BrowserContext.waitForEvent(predicate=)
Parameter not documented: BrowserContext.waitForEvent(timeout=)
Parameter not documented: Page.waitForEvent(predicate=)
Parameter not documented: Page.waitForEvent(timeout=)
Parameter not documented: Page.waitForRequest(predicate=)
Parameter not documented: Page.waitForResponse(predicate=)
Parameter not documented: Selectors.register(path=)
Parameter not documented: WebSocket.waitForEvent(timeout=)
Parameter not documented: WebSocket.waitForEvent(predicate=)
# Documented as Dict / Any
Parameter type mismatch in BrowserContext.setGeolocation(geolocation=): documented as Optional[Dict], code has Optional[{"latitude": float, "longitude": float, "accuracy": Optional[float]}]
Parameter type mismatch in BrowserContext.waitForEvent(return=): documented as Dict, code has Any
Parameter type mismatch in Browser.newContext(viewport=): documented as Optional[Dict], code has Union[{"width": int, "height": int}, '0', NoneType]
Parameter type mismatch in Browser.newPage(viewport=): documented as Optional[Dict], code has Union[{"width": int, "height": int}, '0', NoneType]
Parameter type mismatch in BrowserType.launchPersistentContext(viewport=): documented as Optional[Dict], code has Union[{"width": int, "height": int}, '0', NoneType]
Parameter type mismatch in ElementHandle.boundingBox(return=): documented as Optional[Dict], code has Optional[{"x": float, "y": float, "width": float, "height": float}]
Parameter type mismatch in Page.viewportSize(return=): documented as Optional[Dict], code has Optional[{"width": int, "height": int}]
Parameter type mismatch in Page.waitForEvent(return=): documented as Dict, code has Any
Parameter type mismatch in Request.failure(return=): documented as Optional[Dict], code has Optional[{"errorText": str}]
Parameter type mismatch in Response.json(return=): documented as Any, code has Union[Dict, List]
Parameter type mismatch in WebSocket.waitForEvent(return=): documented as Dict, code has Any
# Pathlib
Parameter type mismatch in BrowserType.launch(executablePath=): documented as Optional[str], code has Union[str, pathlib.Path, NoneType]
Parameter type mismatch in BrowserType.launch(downloadsPath=): documented as Optional[str], code has Union[str, pathlib.Path, NoneType]
Parameter type mismatch in BrowserType.launchPersistentContext(downloadsPath=): documented as Optional[str], code has Union[str, pathlib.Path, NoneType]
Parameter type mismatch in BrowserType.launchPersistentContext(executablePath=): documented as Optional[str], code has Union[str, pathlib.Path, NoneType]
Parameter type mismatch in BrowserType.launchPersistentContext(userDataDir=): documented as str, code has Union[str, pathlib.Path]
Parameter type mismatch in Download.saveAs(path=): documented as str, code has Union[str, pathlib.Path]
Parameter type mismatch in ElementHandle.screenshot(path=): documented as Optional[str], code has Union[str, pathlib.Path, NoneType]
Parameter type mismatch in Frame.addScriptTag(path=): documented as Optional[str], code has Union[str, pathlib.Path, NoneType]
Parameter type mismatch in Frame.addStyleTag(path=): documented as Optional[str], code has Union[str, pathlib.Path, NoneType]
Parameter type mismatch in Page.addScriptTag(path=): documented as Optional[str], code has Union[str, pathlib.Path, NoneType]
Parameter type mismatch in Page.addStyleTag(path=): documented as Optional[str], code has Union[str, pathlib.Path, NoneType]
Parameter type mismatch in Page.screenshot(path=): documented as Optional[str], code has Union[str, pathlib.Path, NoneType]
Parameter type mismatch in Page.pdf(path=): documented as Optional[str], code has Union[str, pathlib.Path, NoneType]
# Pattern
Parameter type mismatch in BrowserContext.route(url=): documented as Union[str, RegExp, function(URL):boolean], code has Union[str, Pattern, Callable[[str], bool]]
Parameter type mismatch in BrowserContext.unroute(url=): documented as Union[str, RegExp, function(URL):boolean], code has Union[str, Pattern, Callable[[str], bool]]
Parameter type mismatch in Frame.waitForNavigation(url=): documented as Union[str, RegExp, Function, NoneType], code has Union[str, Pattern, Callable[[str], bool], NoneType]
Parameter type mismatch in Page.frame(url=): documented as Union[str, RegExp, Function, NoneType], code has Union[str, Pattern, Callable[[str], bool], NoneType]
Parameter type mismatch in Page.route(url=): documented as Union[str, RegExp, function(URL):boolean], code has Union[str, Pattern, Callable[[str], bool]]
Parameter type mismatch in Page.unroute(url=): documented as Union[str, RegExp, function(URL):boolean], code has Union[str, Pattern, Callable[[str], bool]]
Parameter type mismatch in Page.waitForNavigation(url=): documented as Union[str, RegExp, Function, NoneType], code has Union[str, Pattern, Callable[[str], bool], NoneType]
Parameter type mismatch in Page.waitForRequest(urlOrPredicate=): documented as Union[str, RegExp, Function], code has Union[str, Pattern, Callable[[str], bool], NoneType]
Parameter type mismatch in Page.waitForResponse(urlOrPredicate=): documented as Union[str, RegExp, function(Response):boolean], code has Union[str, Pattern, Callable[[str], bool], NoneType]
# Add init script
Parameter type mismatch in Page.addInitScript(script=): documented as Union[Callable, str, Dict], code has Optional[str]
Parameter type mismatch in BrowserContext.addInitScript(script=): documented as Union[Callable, str, Dict], code has Optional[str]
Parameter not documented: BrowserContext.addInitScript(path=)
Parameter not documented: Page.addInitScript(path=)
# File payload
Parameter type mismatch in FileChooser.setFiles(files=): documented as Union[str, List[str], Dict, List[Dict]], code has Union[str, {"name": str, "mimeType": str, "buffer": bytes}, List[str], List[{"name": str, "mimeType": str, "buffer": bytes}]]
Parameter type mismatch in Page.setInputFiles(files=): documented as Union[str, List[str], Dict, List[Dict]], code has Union[str, {"name": str, "mimeType": str, "buffer": bytes}, List[str], List[{"name": str, "mimeType": str, "buffer": bytes}]]
Parameter type mismatch in ElementHandle.setInputFiles(files=): documented as Union[str, List[str], Dict, List[Dict]], code has Union[str, pathlib.Path, {"name": str, "mimeType": str, "buffer": bytes}, List[str], List[pathlib.Path], List[{"name": str, "mimeType": str, "buffer": bytes}]]
Parameter type mismatch in Frame.setInputFiles(files=): documented as Union[str, List[str], Dict, List[Dict]], code has Union[str, pathlib.Path, {"name": str, "mimeType": str, "buffer": bytes}, List[str], List[pathlib.Path], List[{"name": str, "mimeType": str, "buffer": bytes}]]
# Select option
Parameter type mismatch in ElementHandle.selectOption(values=): documented as Union[str, ElementHandle, List[str], Dict, List[ElementHandle], List[Dict], NoneType], code has Union[str, ElementHandle, {"value": Optional[str], "label": Optional[str], "index": Optional[str]}, List[str], List[ElementHandle], List[{"value": Optional[str], "label": Optional[str], "index": Optional[str]}], NoneType]
Parameter type mismatch in Frame.selectOption(values=): documented as Union[str, ElementHandle, List[str], Dict, List[ElementHandle], List[Dict], NoneType], code has Union[str, ElementHandle, {"value": Optional[str], "label": Optional[str], "index": Optional[str]}, List[str], List[ElementHandle], List[{"value": Optional[str], "label": Optional[str], "index": Optional[str]}], NoneType]
Parameter type mismatch in Page.selectOption(values=): documented as Union[str, ElementHandle, List[str], Dict, List[ElementHandle], List[Dict], NoneType], code has Union[str, ElementHandle, {"value": Optional[str], "label": Optional[str], "index": Optional[str]}, List[str], List[ElementHandle], List[{"value": Optional[str], "label": Optional[str], "index": Optional[str]}], NoneType]
# Evaluation argument
Parameter type mismatch in ElementHandle.dispatchEvent(eventInit=): documented as Optional[EvaluationArgument], code has Optional[Dict]
Parameter type mismatch in Frame.dispatchEvent(eventInit=): documented as Optional[EvaluationArgument], code has Optional[Dict]
Parameter type mismatch in Page.dispatchEvent(eventInit=): documented as Optional[EvaluationArgument], code has Optional[Dict]
# Route
Parameter type mismatch in Page.route(handler=): documented as function(Route, Request), code has Callable[[Route, Request], Any]
Parameter type mismatch in Page.unroute(handler=): documented as Optional[function(Route, Request)], code has Optional[Callable[[Route, Request], Any]]
Parameter type mismatch in BrowserContext.route(handler=): documented as function(Route, Request), code has Callable[[Route, Request], Any]
Parameter type mismatch in BrowserContext.unroute(handler=): documented as Optional[function(Route, Request)], code has Optional[Callable[[Route, Request], Any]]
# Selectors
Parameter type mismatch in Selectors.register(script=): documented as Union[Callable, str, Dict], code has Optional[str]
# Device support
Parameter not documented: Browser.newContext(defaultBrowserType=)
Parameter not documented: Browser.newPage(defaultBrowserType=)
# Logger
Parameter not implemented: Browser.newContext(logger=)
Parameter not implemented: BrowserType.launch(logger=)
Parameter not implemented: BrowserType.launchPersistentContext(logger=)
Parameter not implemented: Browser.newPage(logger=)
# Deprecated
Parameter not implemented: Page.addInitScript(arg=)
Parameter not implemented: BrowserContext.addInitScript(arg=)
Method not implemented: BrowserType.connect
# OptionsOr
Parameter not implemented: Page.waitForEvent(optionsOrPredicate=)
Parameter not implemented: BrowserContext.waitForEvent(optionsOrPredicate=)
Parameter not implemented: WebSocket.waitForEvent(optionsOrPredicate=)
# Cookies are documented as Array<Object> in md, so not parsed.
Parameter type mismatch in BrowserContext.addCookies(cookies=): documented as List[Dict], code has List[{"name": str, "value": str, "url": Optional[str], "domain": Optional[str], "path": Optional[str], "expires": Optional[int], "httpOnly": Optional[bool], "secure": Optional[bool], "sameSite": Optional[Literal['Strict', 'Lax', 'None']]}]
Parameter type mismatch in BrowserContext.storageState(return=): documented as {"cookies": List[Dict], "origins": List[Dict]}, code has {"cookies": Optional[List[{"name": str, "value": str, "url": Optional[str], "domain": Optional[str], "path": Optional[str], "expires": Optional[int], "httpOnly": Optional[bool], "secure": Optional[bool], "sameSite": Optional[Literal['Strict', 'Lax', 'None']]}]], "origins": Optional[List[Dict]]}
Parameter type mismatch in BrowserContext.cookies(return=): documented as List[Dict], code has List[{"name": str, "value": str, "url": Optional[str], "domain": Optional[str], "path": Optional[str], "expires": Optional[int], "httpOnly": Optional[bool], "secure": Optional[bool], "sameSite": Optional[Literal['Strict', 'Lax', 'None']]}]
Parameter type mismatch in Browser.newPage(storageState=): documented as Union[str, Dict, NoneType], code has Union[{"cookies": Optional[List[{"name": str, "value": str, "url": Optional[str], "domain": Optional[str], "path": Optional[str], "expires": Optional[int], "httpOnly": Optional[bool], "secure": Optional[bool], "sameSite": Optional[Literal['Strict', 'Lax', 'None']]}]], "origins": Optional[List[Dict]]}, str, pathlib.Path, NoneType]
Parameter type mismatch in Browser.newContext(storageState=): documented as Union[str, Dict, NoneType], code has Union[{"cookies": Optional[List[{"name": str, "value": str, "url": Optional[str], "domain": Optional[str], "path": Optional[str], "expires": Optional[int], "httpOnly": Optional[bool], "secure": Optional[bool], "sameSite": Optional[Literal['Strict', 'Lax', 'None']]}]], "origins": Optional[List[Dict]]}, str, pathlib.Path, NoneType]
# Pathlib-related
Parameter type mismatch in BrowserType.launchPersistentContext(recordHar=): documented as Optional[{"omitContent": Optional[bool], "path": str}], code has Optional[{"omitContent": Optional[bool], "path": Union[str, pathlib.Path]}]
Parameter type mismatch in BrowserType.launchPersistentContext(recordVideo=): documented as Optional[{"dir": str, "size": Optional[{"width": int, "height": int}]}], code has Optional[{"dir": Union[str, pathlib.Path], "size": Optional[{"width": int, "height": int}]}]
Parameter type mismatch in Browser.newPage(recordVideo=): documented as Optional[{"dir": str, "size": Optional[{"width": int, "height": int}]}], code has Optional[{"dir": Union[str, pathlib.Path], "size": Optional[{"width": int, "height": int}]}]
Parameter type mismatch in Browser.newContext(recordVideo=): documented as Optional[{"dir": str, "size": Optional[{"width": int, "height": int}]}], code has Optional[{"dir": Union[str, pathlib.Path], "size": Optional[{"width": int, "height": int}]}]
Parameter type mismatch in BrowserContext.storageState(path=): documented as Optional[str], code has Union[str, pathlib.Path, NoneType]
Parameter type mismatch in Browser.newContext(recordHar=): documented as Optional[{"omitContent": Optional[bool], "path": str}], code has Optional[{"omitContent": Optional[bool], "path": Union[str, pathlib.Path]}]
Parameter type mismatch in Browser.newPage(recordHar=): documented as Optional[{"omitContent": Optional[bool], "path": str}], code has Optional[{"omitContent": Optional[bool], "path": Union[str, pathlib.Path]}]