Navigate before initializing page state
This commit is contained in:
+7
-2
@@ -27,9 +27,14 @@ def _single_run(
|
||||
|
||||
identifier = f"batch-{batch_id[:8]}-{run_index:04d}"
|
||||
t0 = time.monotonic()
|
||||
log.info("[batch:%s] Run %d starting", batch_id[:8], run_index)
|
||||
target_url = str(cfg.get("target_url") or "").strip()
|
||||
log.info(
|
||||
"[batch:%s] Run %d starting — target=%s",
|
||||
batch_id[:8],
|
||||
run_index,
|
||||
target_url or "<missing>",
|
||||
)
|
||||
try:
|
||||
target_url: str = cfg.get("target_url") or ""
|
||||
with driver_session(headless=headless, recording_name=identifier) as driver:
|
||||
FreshSessionScenario(driver, target_url).run()
|
||||
result = DynamicFlow(driver, cfg).run() if cfg else None
|
||||
|
||||
Reference in New Issue
Block a user