You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just minor revision from your codes after clicking submit button, so any error message will be captured alongside with username into firebase db and dump it also to a text file :
.................
submit.click()
sleep(3)
try:
alert = driver.find_element_by_xpath("//*[@ROLE='alert']")
alert = alert.text
except:
alert=""
pass
print('Registering....'+name+','+alert)
try:
with open('storedDB.txt', 'a') as outcsv:
writer = csv.writer(outcsv, delimiter=';', quotechar='"', quoting=csv.QUOTE_NONE, lineterminator='\n')
#text = name+','+alert
#print(text )
writer.writerow([name, alert])
outcsv.close()
except:
pass
storeinfirebase(name,alert)
sleep(10)
driver.close()
if "Sorry" in alert:
return True
Just minor revision from your codes after clicking submit button, so any error message will be captured alongside with username into firebase db and dump it also to a text file :
.................
submit.click()
sleep(3)
try:
alert = driver.find_element_by_xpath("//*[@ROLE='alert']")
alert = alert.text
except:
alert=""
pass
..........
..........
..........
...........
...........
...........
for i in range(0, config.Config['amount_of_run']):
if create_account():
break
The text was updated successfully, but these errors were encountered: