Skip to content

Commit

Permalink
Merge pull request #8 from aysylu/main
Browse files Browse the repository at this point in the history
after buying the pass, navigate to correct page to look for active passes
  • Loading branch information
dgrnbrg authored May 5, 2024
2 parents 392b19d + e1ab0d8 commit c798aab
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 c798aab

Please sign in to comment.