Navigate before initializing page state
This commit is contained in:
+8
-3
@@ -304,11 +304,16 @@ def run_batch_job(batch_id: str, item: dict[str, Any]) -> None:
|
||||
|
||||
t0 = time.monotonic()
|
||||
identifier = f"batch-{batch_id[:8]}-{slot:04d}"
|
||||
log.info("[batch:%s] slot %d starting", batch_id[:8], slot)
|
||||
target_url = str(cfg.get("target_url") or "").strip()
|
||||
scenario: str = cfg.get("scenario") or "dynamic"
|
||||
log.info(
|
||||
"[batch:%s] slot %d starting — target=%s",
|
||||
batch_id[:8],
|
||||
slot,
|
||||
target_url or "<missing>",
|
||||
)
|
||||
|
||||
try:
|
||||
target_url: str = cfg.get("target_url") or ""
|
||||
scenario: str = cfg.get("scenario") or "dynamic"
|
||||
with driver_session(headless=headless, recording_name=identifier) as driver:
|
||||
FreshSessionScenario(driver, target_url).run()
|
||||
if cfg:
|
||||
|
||||
Reference in New Issue
Block a user