Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -50,7 +50,7 @@ class BaseBrowserTest: | ... | @@ -50,7 +50,7 @@ class BaseBrowserTest: |
| 50 | 50 | ||
| 51 | # 创建浏览器上下文 | 51 | # 创建浏览器上下文 |
| 52 | self.context = self.browser.new_context( | 52 | self.context = self.browser.new_context( |
| 53 | - viewport={'width': 1920, 'height': 1080}, | 53 | + viewport=None, # 使用全屏模式,自动适应屏幕尺寸 |
| 54 | user_agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36' | 54 | user_agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36' |
| 55 | ) | 55 | ) |
| 56 | 56 | ... | ... |
-
Please register or login to post a comment