Skip to content

Commit

Permalink
after buying the pass, navigate to correct page to look for active pa…
Browse files Browse the repository at this point in the history
…sses
  • Loading branch information
aysylu committed May 4, 2024
1 parent e69e49f commit e1ab0d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions goportparking.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")]]]'
Expand Down

0 comments on commit e1ab0d8

Please sign in to comment.