This commit is contained in:
Ken Yasue
2025-03-24 15:27:52 +01:00
3 changed files with 40 additions and 14 deletions

View File

@ -21,9 +21,9 @@ export async function execSearch(driver: WebDriver, city: string): Promise<boole
await searchInput.sendKeys(city);
// Submit the search (press Enter)
await WebDriverUtils.wait(2);
await WebDriverUtils.wait(driver);
await searchInput.sendKeys('\uE007'); // Unicode for Enter key
await WebDriverUtils.wait(5); // Wait 5 seconds before next city
await WebDriverUtils.wait(driver); // Wait 5 seconds before next city
return true;
} catch (e) {