fix(sync): await Untersuchungen form navigation to prevent Fahrgenehmigungen page abort
This commit is contained in:
@@ -984,8 +984,10 @@ async function scrapeMemberUntersuchungen(
|
|||||||
await selectAlleAnzeige(frame);
|
await selectAlleAnzeige(frame);
|
||||||
const submitBtn = frame.locator('input[type="image"][src*="suchen"]');
|
const submitBtn = frame.locator('input[type="image"][src*="suchen"]');
|
||||||
if (await submitBtn.count() > 0) {
|
if (await submitBtn.count() > 0) {
|
||||||
await submitBtn.click();
|
await Promise.all([
|
||||||
await frame.waitForLoadState('networkidle').catch(() => {});
|
frame.waitForNavigation({ waitUntil: 'networkidle', timeout: 15000 }).catch(() => {}),
|
||||||
|
submitBtn.click(),
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try to navigate to history/detail view if available
|
// Try to navigate to history/detail view if available
|
||||||
|
|||||||
Reference in New Issue
Block a user