15
15
async def main ():
16
16
lib = Main ()
17
17
co = ChromiumOptions ()
18
- co .auto_port ()
19
- co .incognito ()
18
+ co .incognito ().auto_port ().mute (True )
20
19
21
20
print ("Checking for updates..." )
22
21
await lib .checkUpdate ()
@@ -82,6 +81,7 @@ async def main():
82
81
bar .update (20 )
83
82
chrome = Chromium (addr_or_opts = co )
84
83
page = chrome .get_tab (id_or_num = 1 )
84
+ page .set .window .max ()
85
85
page .listen .start ("https://mails.org" , method = "POST" )
86
86
page .get ("https://mails.org" )
87
87
@@ -124,20 +124,8 @@ async def main():
124
124
tab .ele ("#inputNewPassword2" ).input (passw )
125
125
page .listen .start ("https://mails.org" , method = "POST" )
126
126
127
- startTime = time .time ()
128
- while True :
129
- endTime = time .time ()
130
- if endTime - startTime > 10 :
131
- print ("Failed to find captcha. Exiting..." )
132
- return
133
- else :
134
- if tab .ele (".:grecaptcha-badge" ):
135
- break
136
127
tab .ele (".custom-checkbox--input checkbox" ).click ()
137
128
138
- bar .set_description (f"Signup process [{ x + 1 } /{ executionCount } ]" )
139
- bar .update (30 )
140
-
141
129
try :
142
130
tab .ele (
143
131
".btn btn-primary btn-block btn-recaptcha btn-recaptcha-invisible"
@@ -148,6 +136,9 @@ async def main():
148
136
".btn btn-primary btn-block btn-recaptcha btn-recaptcha-invisible"
149
137
).click ()
150
138
139
+ bar .set_description (f"Signup process [{ x + 1 } /{ executionCount } ]" )
140
+ bar .update (30 )
141
+
151
142
if tab .wait .url_change ("https://www.exitlag.com/clientarea.php" , timeout = 60 ):
152
143
if tab .ele (".alert--title" , timeout = 60 ):
153
144
link = None
0 commit comments