Fix 2FA (language setting is not always working)

This commit is contained in:
augustin64
2024-04-10 11:04:54 +02:00
parent ba66a96c65
commit 49dc53ed32
2 changed files with 27 additions and 14 deletions

View File

@ -60,6 +60,10 @@ def send_keys_wait(element, keys: str) -> None:
element.send_keys(i)
sleep(uniform(0.1, 0.3))
def send_wait_and_confirm(element, keys: str) -> None:
send_keys_wait(element, keys)
element.send_keys(Keys.ENTER)
# Wait for the presence of the element identifier or [timeout]s
def wait_until_visible(search_by: str, identifier: str, timeout: int = 20, browser=None) -> bool: