From e1ab0d879bb2edf593ade4cdcad1d26f843b4604 Mon Sep 17 00:00:00 2001 From: Aysylu Greenberg Date: Sat, 4 May 2024 18:31:43 -0400 Subject: [PATCH] after buying the pass, navigate to correct page to look for active passes --- goportparking.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/goportparking.py b/goportparking.py index 4f41615..f1457be 100644 --- a/goportparking.py +++ b/goportparking.py @@ -97,6 +97,10 @@ def book_daily(self, event_name, data, kwargs): quick_buy_confirm.click() print(f"bought the daily pass (confirm={quick_buy_confirm})") + time.sleep(WEB_WAIT) + self.log(f"Next, navigate to the portal's index page") + self.driver.get("https://goportparking.org/rppportal/index.xhtml") + self.log(f"Navigating to the portal's index page") time.sleep(WEB_WAIT) try: xpath = f'//div[contains(@class, "panel") and .//h3[contains(text(), "Your RPPs")] and .//li[contains(@class, "active") and ./a[contains(text(), "Current RPPs")]] and .//td[./span[contains(text(), "Plate")] and ./span[contains(text(), "{plate}") and contains(@class, "text-success")]]]'