Skip to content

Commit

Permalink
chore: fix fetch_code py module
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-yangy committed Oct 30, 2024
1 parent daef2eb commit 2a72552
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sample/Tests/src/device_code_login_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.keys import Keys
import time
from gmail_fetch_otp import fetch_gmail_code

EMAIL = '[email protected]'
from fetch_otp import EMAIL, fetch_code

# Add chrome.exe to environment variable
# Download chrome driver and add to environment variable
Expand Down Expand Up @@ -46,7 +44,7 @@ def main():
time.sleep(10)

print("Get OTP from Gmail...")
code = fetch_gmail_code()
code = fetch_code()
if code:
print(f"Successfully fetched OTP: {code}")
else:
Expand Down

0 comments on commit 2a72552

Please sign in to comment.