auto scroll

This commit is contained in:
Ken Yasue
2025-03-24 06:57:25 +01:00
parent b6cad2a241
commit 1ffea0f61f
3 changed files with 42 additions and 16 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) {