Skip to content

Commit 2f0b2ce

Browse files
authored
Update custom_context.py
1 parent 3c7ba91 commit 2f0b2ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/browser/custom_context.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ async def _create_context(self, browser: PlaywrightBrowser):
4242
bypass_csp=self.config.disable_security,
4343
ignore_https_errors=self.config.disable_security,
4444
record_video_dir=self.config.save_recording_path,
45-
record_video_size=self.config.browser_window_size.model_dump(),
45+
record_video_size={
46+
"width": self.config.window_width,
47+
"height": self.config.window_height
48+
},
4649
record_har_path=self.config.save_har_path,
4750
locale=self.config.locale,
4851
http_credentials=self.config.http_credentials,

0 commit comments

Comments
 (0)