feat: 增加了判断邮箱是否错误
This commit is contained in:
@@ -123,6 +123,7 @@ def delete_account(browser, tab):
|
|||||||
tab.ele("@name=password").input(password)
|
tab.ele("@name=password").input(password)
|
||||||
print("输入密码")
|
print("输入密码")
|
||||||
time.sleep(random.uniform(1, 3))
|
time.sleep(random.uniform(1, 3))
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("输入密码失败")
|
print("输入密码失败")
|
||||||
|
|
||||||
@@ -141,6 +142,9 @@ def delete_account(browser, tab):
|
|||||||
# 处理验证码
|
# 处理验证码
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
|
if tab.ele("Invalid email or password"):
|
||||||
|
print("Invalid email or password")
|
||||||
|
return False
|
||||||
if tab.ele("Account Settings"):
|
if tab.ele("Account Settings"):
|
||||||
break
|
break
|
||||||
if tab.ele("@data-index=0"):
|
if tab.ele("@data-index=0"):
|
||||||
|
|||||||
Reference in New Issue
Block a user