Skip to content

Commit

Permalink
fix login
Browse files Browse the repository at this point in the history
  • Loading branch information
maxxrk committed May 13, 2024
1 parent de7f729 commit 3756289
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@

setuptools.setup(
name="vanguard-api",
version="0.0.6",
version="0.0.7",
author="MaxxRK",
author_email="[email protected]",
description="An unofficial API for Vanguard Invest",
long_description=long_description,
long_description_content_type="text/markdown",
license="MIT",
url="https://github.com/MaxxRK/vanguard-api",
download_url="https://github.com/MaxxRK/vanguard-api/archive/refs/tags/v0.0.6.tar.gz",
download_url="https://github.com/MaxxRK/vanguard-api/archive/refs/tags/v0.0.7.tar.gz",
keywords=["VANGUARD", "API"],
install_requires=["playwright", "playwright-stealth"],
packages=["vanguard"],
Expand Down
3 changes: 3 additions & 0 deletions vanguard/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ def login(self, username, password, last_four):
if otp_card.inner_text() == f"***-***-{last_four}":
otp_card.click()
break
except PlaywrightTimeoutError:
pass
try:
self.page.wait_for_selector(
"xpath=//div[contains(text(), 'Text')]", timeout=10000
).click()
Expand Down

0 comments on commit 3756289

Please sign in to comment.