df
Some checks failed
smoke-mm / Install & smoke test mm --help (push) Has been cancelled

This commit is contained in:
2025-12-29 17:05:03 -08:00
parent 226de9316a
commit c019c00aed
104 changed files with 19669 additions and 12954 deletions

View File

@@ -147,7 +147,11 @@ class PlaywrightTool:
ua = self.defaults.user_agent if user_agent is None else str(user_agent)
vw = self.defaults.viewport_width if viewport_width is None else int(viewport_width)
vh = self.defaults.viewport_height if viewport_height is None else int(viewport_height)
ihe = self.defaults.ignore_https_errors if ignore_https_errors is None else bool(ignore_https_errors)
ihe = (
self.defaults.ignore_https_errors
if ignore_https_errors is None
else bool(ignore_https_errors)
)
# Support Playwright-native headers/user-agent.
# If user_agent is unset/empty or explicitly set to one of these tokens,
@@ -204,7 +208,9 @@ class PlaywrightTool:
def goto(self, page: Any, url: str) -> None:
"""Navigate with configured timeout."""
try:
page.goto(url, timeout=int(self.defaults.navigation_timeout_ms), wait_until="domcontentloaded")
page.goto(
url, timeout=int(self.defaults.navigation_timeout_ms), wait_until="domcontentloaded"
)
except Exception:
raise