You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If Voice ID is partially set up, the login page redirects to https://client.schwab.com/service/forms/VoiceBiometric instead of whichever page was selected:
The relevant HTML fragment for clicking "Cancel", which just skips voice activation enabling and going to the correct post-login page, is
<divclass="background-Highlight"><divid="divEnroll" class="section-msg"><divid="divCmsReadyToEnroll"><b>You're almost done!</b> Click Activate Voice ID and use your new voice ID the next time you call Schwab.
</div><divid="divButtonAreaEnroll" class="space-bttonarea"><arole="button" id="btnCancel" class="button-secondary" href="#"><span>Cancel</span></a><arole="button" id="btnActivateVoiceId" class="button-primary" href="/Service/Forms/VoiceBiometric/VoiceBiometricActivate"><span>Activate Voice ID</span></a></div></div></div>
awaitself.page.wait_for_url(re.compile(r"app/trade"), wait_until="domcontentloaded") # Making it more robust than specifying an exact url which may change.
would also wait for service/forms/VoiceBiometric, and cancel if necessary.
The text was updated successfully, but these errors were encountered:
try:
awaitself.page.frame(name=login_frame).press("[placeholder=\"Password\"]", "Enter")
awaitself.page.wait_for_url(re.compile(r"app/trade"), wait_until="domcontentloaded") # Making it more robust than specifying an exact url which may change.exceptTimeoutErrorase:
# Capture screenshotawaitself.page.screenshot(path="debug_screenshot.png")
# Save page contentpage_content=awaitself.page.content()
withopen("debug_page_content.html", "w", encoding="utf-8") asf:
f.write(page_content)
print(f"Current URL: {self.page.url}")
raiseRuntimeError(f"Login was not successful; please check username and password. Debug info saved to {os.path.abspath('debug_screenshot.png')} and {os.path.abspath('debug_page_content.html')}") frome
If Voice ID is partially set up, the login page redirects to https://client.schwab.com/service/forms/VoiceBiometric instead of whichever page was selected:
The relevant HTML fragment for clicking "Cancel", which just skips voice activation enabling and going to the correct post-login page, is
(Full page html is voice_activation_page_redacted.html.zip)
It would be nice if
schwab-api/schwab_api/authentication.py
Line 167 in 4ecc624
would also wait for
service/forms/VoiceBiometric
, and cancel if necessary.The text was updated successfully, but these errors were encountered: