Skip to content

Commit

Permalink
Update EsetTools.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rzc0d3r authored Dec 10, 2024
1 parent a3ac6ba commit 08aaf04
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions modules/EsetTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,13 @@ def confirmAccount(self):
console_log(f'ESET-HOME-Token: {token}', OK)
console_log('\nAccount confirmation is in progress...', INFO)
self.driver.get(f'https://login.eset.com/link/confirmregistration?token={token}')
uCE(self.driver, 'return document.title.trim().toLowerCase() === "ESET HOME"')
uCE(self.driver, f'return {GET_EBCN}("verification-email_p").length === 0', raise_exception_if_failed=False)
uCE(self.driver, 'return document.title === "ESET HOME"')
try:
uCE(self.driver, f'return {GET_EBCN}("verification-email_p").length === 0')
except:
self.driver.get(f'https://login.eset.com/link/confirmregistration?token={token}')
uCE(self.driver, 'return document.title === "ESET HOME"')
uCE(self.driver, f'return {GET_EBCN}("verification-email_p").length === 0')
console_log('Account successfully confirmed!', OK)
return True

Expand Down

0 comments on commit 08aaf04

Please sign in to comment.