df
Some checks failed
smoke-mm / Install & smoke test mm --help (push) Has been cancelled
Some checks failed
smoke-mm / Install & smoke test mm --help (push) Has been cancelled
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user