Digital Credit Email Template
Merged

Snapcam Viewer

artstation machine gun

:
Changes from 1 commit
Commits
File filter

Tech Hirring Event Snapcam Viewer

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add error handling and screenshot capture for Transifex login
  • Loading branch information
commit 39026a336e454622506fb549f646e95fc1992ce2
15 changes: 11 additions & 4 deletions Background For Blog Post Website
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,17 @@ def is_logged_in(driver):
def login_transifex(driver, username, password):
driver.get("https://app.transifex.com/signin/")
sleep(5)
write(username, into="Email")
write(password, into="Password")
click("Log in") # Adjust selector if needed.
# Allow time for login and cookie propagation.
try:
write(username, into="Email")
write(password, into="Password")
click("Log in")

except Exception as e:
print(f"Login failed: {e}")
# Take screenshot for debugging
driver.save_screenshot("login_error.png")
raise

driver.implicitly_wait(10)
save_cookies(driver)
return driver
Expand Down