@@ -405,7 +405,7 @@ async def fulfill(
405
405
return mapping .from_maybe_impl (
406
406
await self ._impl_obj .fulfill (
407
407
status = status ,
408
- headers = headers ,
408
+ headers = mapping . to_impl ( headers ) ,
409
409
body = body ,
410
410
path = path ,
411
411
contentType = contentType ,
@@ -433,7 +433,7 @@ async def continue_(
433
433
"""
434
434
return mapping .from_maybe_impl (
435
435
await self ._impl_obj .continue_ (
436
- method = method , headers = headers , postData = postData
436
+ method = method , headers = mapping . to_impl ( headers ) , postData = postData
437
437
)
438
438
)
439
439
@@ -881,7 +881,9 @@ async def dispatchEvent(self, type: str, eventInit: typing.Dict = None) -> NoneT
881
881
event-specific initialization properties.
882
882
"""
883
883
return mapping .from_maybe_impl (
884
- await self ._impl_obj .dispatchEvent (type = type , eventInit = eventInit )
884
+ await self ._impl_obj .dispatchEvent (
885
+ type = type , eventInit = mapping .to_impl (eventInit )
886
+ )
885
887
)
886
888
887
889
async def scrollIntoViewIfNeeded (self , timeout : int = None ) -> NoneType :
@@ -926,7 +928,10 @@ async def hover(
926
928
"""
927
929
return mapping .from_maybe_impl (
928
930
await self ._impl_obj .hover (
929
- modifiers = modifiers , position = position , timeout = timeout , force = force
931
+ modifiers = modifiers ,
932
+ position = mapping .to_impl (position ),
933
+ timeout = timeout ,
934
+ force = force ,
930
935
)
931
936
)
932
937
@@ -970,7 +975,7 @@ async def click(
970
975
return mapping .from_maybe_impl (
971
976
await self ._impl_obj .click (
972
977
modifiers = modifiers ,
973
- position = position ,
978
+ position = mapping . to_impl ( position ) ,
974
979
delay = delay ,
975
980
button = button ,
976
981
clickCount = clickCount ,
@@ -1020,7 +1025,7 @@ async def dblclick(
1020
1025
return mapping .from_maybe_impl (
1021
1026
await self ._impl_obj .dblclick (
1022
1027
modifiers = modifiers ,
1023
- position = position ,
1028
+ position = mapping . to_impl ( position ) ,
1024
1029
delay = delay ,
1025
1030
button = button ,
1026
1031
timeout = timeout ,
@@ -1873,7 +1878,10 @@ async def dispatchEvent(
1873
1878
"""
1874
1879
return mapping .from_maybe_impl (
1875
1880
await self ._impl_obj .dispatchEvent (
1876
- selector = selector , type = type , eventInit = eventInit , timeout = timeout
1881
+ selector = selector ,
1882
+ type = type ,
1883
+ eventInit = mapping .to_impl (eventInit ),
1884
+ timeout = timeout ,
1877
1885
)
1878
1886
)
1879
1887
@@ -2099,7 +2107,7 @@ async def click(
2099
2107
await self ._impl_obj .click (
2100
2108
selector = selector ,
2101
2109
modifiers = modifiers ,
2102
- position = position ,
2110
+ position = mapping . to_impl ( position ) ,
2103
2111
delay = delay ,
2104
2112
button = button ,
2105
2113
clickCount = clickCount ,
@@ -2150,7 +2158,7 @@ async def dblclick(
2150
2158
await self ._impl_obj .dblclick (
2151
2159
selector = selector ,
2152
2160
modifiers = modifiers ,
2153
- position = position ,
2161
+ position = mapping . to_impl ( position ) ,
2154
2162
delay = delay ,
2155
2163
button = button ,
2156
2164
timeout = timeout ,
@@ -2322,7 +2330,7 @@ async def hover(
2322
2330
await self ._impl_obj .hover (
2323
2331
selector = selector ,
2324
2332
modifiers = modifiers ,
2325
- position = position ,
2333
+ position = mapping . to_impl ( position ) ,
2326
2334
timeout = timeout ,
2327
2335
force = force ,
2328
2336
)
@@ -3201,7 +3209,10 @@ async def dispatchEvent(
3201
3209
"""
3202
3210
return mapping .from_maybe_impl (
3203
3211
await self ._impl_obj .dispatchEvent (
3204
- selector = selector , type = type , eventInit = eventInit , timeout = timeout
3212
+ selector = selector ,
3213
+ type = type ,
3214
+ eventInit = mapping .to_impl (eventInit ),
3215
+ timeout = timeout ,
3205
3216
)
3206
3217
)
3207
3218
@@ -3467,7 +3478,7 @@ async def setExtraHTTPHeaders(self, headers: typing.Dict) -> NoneType:
3467
3478
An object containing additional HTTP headers to be sent with every request. All header values must be strings.
3468
3479
"""
3469
3480
return mapping .from_maybe_impl (
3470
- await self ._impl_obj .setExtraHTTPHeaders (headers = headers )
3481
+ await self ._impl_obj .setExtraHTTPHeaders (headers = mapping . to_impl ( headers ) )
3471
3482
)
3472
3483
3473
3484
async def content (self ) -> str :
@@ -3954,7 +3965,7 @@ async def screenshot(
3954
3965
quality = quality ,
3955
3966
omitBackground = omitBackground ,
3956
3967
fullPage = fullPage ,
3957
- clip = clip ,
3968
+ clip = mapping . to_impl ( clip ) ,
3958
3969
)
3959
3970
)
3960
3971
@@ -4045,7 +4056,7 @@ async def click(
4045
4056
await self ._impl_obj .click (
4046
4057
selector = selector ,
4047
4058
modifiers = modifiers ,
4048
- position = position ,
4059
+ position = mapping . to_impl ( position ) ,
4049
4060
delay = delay ,
4050
4061
button = button ,
4051
4062
clickCount = clickCount ,
@@ -4098,7 +4109,7 @@ async def dblclick(
4098
4109
await self ._impl_obj .dblclick (
4099
4110
selector = selector ,
4100
4111
modifiers = modifiers ,
4101
- position = position ,
4112
+ position = mapping . to_impl ( position ) ,
4102
4113
delay = delay ,
4103
4114
button = button ,
4104
4115
timeout = timeout ,
@@ -4273,7 +4284,7 @@ async def hover(
4273
4284
await self ._impl_obj .hover (
4274
4285
selector = selector ,
4275
4286
modifiers = modifiers ,
4276
- position = position ,
4287
+ position = mapping . to_impl ( position ) ,
4277
4288
timeout = timeout ,
4278
4289
force = force ,
4279
4290
)
@@ -4661,7 +4672,7 @@ async def pdf(
4661
4672
width = width ,
4662
4673
height = height ,
4663
4674
preferCSSPageSize = preferCSSPageSize ,
4664
- margin = margin ,
4675
+ margin = mapping . to_impl ( margin ) ,
4665
4676
path = path ,
4666
4677
)
4667
4678
)
@@ -4868,7 +4879,9 @@ async def addCookies(self, cookies: typing.List[typing.Dict]) -> NoneType:
4868
4879
----------
4869
4880
cookies : typing.List[typing.Dict]
4870
4881
"""
4871
- return mapping .from_maybe_impl (await self ._impl_obj .addCookies (cookies = cookies ))
4882
+ return mapping .from_maybe_impl (
4883
+ await self ._impl_obj .addCookies (cookies = mapping .to_impl (cookies ))
4884
+ )
4872
4885
4873
4886
async def clearCookies (self ) -> NoneType :
4874
4887
"""BrowserContext.clearCookies
@@ -4933,7 +4946,9 @@ async def setGeolocation(self, geolocation: typing.Dict = None) -> NoneType:
4933
4946
geolocation : Optional[typing.Dict]
4934
4947
"""
4935
4948
return mapping .from_maybe_impl (
4936
- await self ._impl_obj .setGeolocation (geolocation = geolocation )
4949
+ await self ._impl_obj .setGeolocation (
4950
+ geolocation = mapping .to_impl (geolocation )
4951
+ )
4937
4952
)
4938
4953
4939
4954
async def setExtraHTTPHeaders (self , headers : typing .Dict ) -> NoneType :
@@ -4949,7 +4964,7 @@ async def setExtraHTTPHeaders(self, headers: typing.Dict) -> NoneType:
4949
4964
An object containing additional HTTP headers to be sent with every request. All header values must be strings.
4950
4965
"""
4951
4966
return mapping .from_maybe_impl (
4952
- await self ._impl_obj .setExtraHTTPHeaders (headers = headers )
4967
+ await self ._impl_obj .setExtraHTTPHeaders (headers = mapping . to_impl ( headers ) )
4953
4968
)
4954
4969
4955
4970
async def setOffline (self , offline : bool ) -> NoneType :
@@ -5160,7 +5175,7 @@ async def send(self, method: str, params: typing.Dict = None) -> typing.Dict:
5160
5175
typing.Dict
5161
5176
"""
5162
5177
return mapping .from_maybe_impl (
5163
- await self ._impl_obj .send (method = method , params = params )
5178
+ await self ._impl_obj .send (method = method , params = mapping . to_impl ( params ) )
5164
5179
)
5165
5180
5166
5181
async def detach (self ) -> NoneType :
@@ -5314,18 +5329,18 @@ async def newContext(
5314
5329
"""
5315
5330
return mapping .from_impl (
5316
5331
await self ._impl_obj .newContext (
5317
- viewport = viewport ,
5332
+ viewport = mapping . to_impl ( viewport ) ,
5318
5333
ignoreHTTPSErrors = ignoreHTTPSErrors ,
5319
5334
javaScriptEnabled = javaScriptEnabled ,
5320
5335
bypassCSP = bypassCSP ,
5321
5336
userAgent = userAgent ,
5322
5337
locale = locale ,
5323
5338
timezoneId = timezoneId ,
5324
- geolocation = geolocation ,
5339
+ geolocation = mapping . to_impl ( geolocation ) ,
5325
5340
permissions = permissions ,
5326
- extraHTTPHeaders = extraHTTPHeaders ,
5341
+ extraHTTPHeaders = mapping . to_impl ( extraHTTPHeaders ) ,
5327
5342
offline = offline ,
5328
- httpCredentials = httpCredentials ,
5343
+ httpCredentials = mapping . to_impl ( httpCredentials ) ,
5329
5344
deviceScaleFactor = deviceScaleFactor ,
5330
5345
isMobile = isMobile ,
5331
5346
hasTouch = hasTouch ,
@@ -5401,18 +5416,18 @@ async def newPage(
5401
5416
"""
5402
5417
return mapping .from_impl (
5403
5418
await self ._impl_obj .newPage (
5404
- viewport = viewport ,
5419
+ viewport = mapping . to_impl ( viewport ) ,
5405
5420
ignoreHTTPSErrors = ignoreHTTPSErrors ,
5406
5421
javaScriptEnabled = javaScriptEnabled ,
5407
5422
bypassCSP = bypassCSP ,
5408
5423
userAgent = userAgent ,
5409
5424
locale = locale ,
5410
5425
timezoneId = timezoneId ,
5411
- geolocation = geolocation ,
5426
+ geolocation = mapping . to_impl ( geolocation ) ,
5412
5427
permissions = permissions ,
5413
- extraHTTPHeaders = extraHTTPHeaders ,
5428
+ extraHTTPHeaders = mapping . to_impl ( extraHTTPHeaders ) ,
5414
5429
offline = offline ,
5415
- httpCredentials = httpCredentials ,
5430
+ httpCredentials = mapping . to_impl ( httpCredentials ) ,
5416
5431
deviceScaleFactor = deviceScaleFactor ,
5417
5432
isMobile = isMobile ,
5418
5433
hasTouch = hasTouch ,
@@ -5582,10 +5597,10 @@ async def launch(
5582
5597
handleSIGTERM = handleSIGTERM ,
5583
5598
handleSIGHUP = handleSIGHUP ,
5584
5599
timeout = timeout ,
5585
- env = env ,
5600
+ env = mapping . to_impl ( env ) ,
5586
5601
headless = headless ,
5587
5602
devtools = devtools ,
5588
- proxy = proxy ,
5603
+ proxy = mapping . to_impl ( proxy ) ,
5589
5604
downloadsPath = downloadsPath ,
5590
5605
slowMo = slowMo ,
5591
5606
chromiumSandbox = chromiumSandbox ,
@@ -5658,10 +5673,10 @@ async def launchServer(
5658
5673
handleSIGTERM = handleSIGTERM ,
5659
5674
handleSIGHUP = handleSIGHUP ,
5660
5675
timeout = timeout ,
5661
- env = env ,
5676
+ env = mapping . to_impl ( env ) ,
5662
5677
headless = headless ,
5663
5678
devtools = devtools ,
5664
- proxy = proxy ,
5679
+ proxy = mapping . to_impl ( proxy ) ,
5665
5680
downloadsPath = downloadsPath ,
5666
5681
port = port ,
5667
5682
chromiumSandbox = chromiumSandbox ,
@@ -5785,24 +5800,24 @@ async def launchPersistentContext(
5785
5800
handleSIGTERM = handleSIGTERM ,
5786
5801
handleSIGHUP = handleSIGHUP ,
5787
5802
timeout = timeout ,
5788
- env = env ,
5803
+ env = mapping . to_impl ( env ) ,
5789
5804
headless = headless ,
5790
5805
devtools = devtools ,
5791
- proxy = proxy ,
5806
+ proxy = mapping . to_impl ( proxy ) ,
5792
5807
downloadsPath = downloadsPath ,
5793
5808
slowMo = slowMo ,
5794
- viewport = viewport ,
5809
+ viewport = mapping . to_impl ( viewport ) ,
5795
5810
ignoreHTTPSErrors = ignoreHTTPSErrors ,
5796
5811
javaScriptEnabled = javaScriptEnabled ,
5797
5812
bypassCSP = bypassCSP ,
5798
5813
userAgent = userAgent ,
5799
5814
locale = locale ,
5800
5815
timezoneId = timezoneId ,
5801
- geolocation = geolocation ,
5816
+ geolocation = mapping . to_impl ( geolocation ) ,
5802
5817
permissions = permissions ,
5803
- extraHTTPHeaders = extraHTTPHeaders ,
5818
+ extraHTTPHeaders = mapping . to_impl ( extraHTTPHeaders ) ,
5804
5819
offline = offline ,
5805
- httpCredentials = httpCredentials ,
5820
+ httpCredentials = mapping . to_impl ( httpCredentials ) ,
5806
5821
deviceScaleFactor = deviceScaleFactor ,
5807
5822
isMobile = isMobile ,
5808
5823
hasTouch = hasTouch ,
0 commit comments