Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
phitrann committed Mar 8, 2024
1 parent 49cf581 commit 29c7b33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
url = 'https://www.vietjetair.com'
browser.get(url)

wait = WebDriverWait(browser, 15)
wait = WebDriverWait(browser, 10)

# Chọn sử dụng cookie
wait.until(EC.element_to_be_clickable((By.XPATH, '//div[@role="dialog"]//button'))).click()
Expand All @@ -61,7 +61,7 @@
# for close_button in close_buttons[1:]:
# close_button.click()


sleep(.5)
# Chọn vé một chiều
wait.until(EC.element_to_be_clickable((
By.XPATH, '//span[text()="Một chiều"]'))).click()
Expand Down

0 comments on commit 29c7b33

Please sign in to comment.