Merge branch 'main' of https://git.yasue.org/ken/tripadviser_scraper
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user