If statement to restart program when it encounters a captcha

DeepDishPizza

Новичок
Регистрация
16.06.2016
Сообщения
3
Реакции
0
Баллы
1
Hi all,

I am trying to reactivate some email accounts that I use for testing purposes.

Basically, I have a program that logs in to each account with the email address as variable 1 and the password as variable 2. It should log in, when prompted to enter a new password, put in the password variable twice.

The problem is sporadically the program will encounter a captcha after first inputting an email and then password.

I would like the attached program to simply restart the program if it encounters any captcha, move down the list of email/password combinations.

Is there such an if statement as "if captcha"? I am not sure if an if statement is the best for this.

How I would like it to run:

1st scenario: Input email address -> input password -> input password twice (resets account) -> in account -> restart program -> grab next email

2nd scenario: Input email address -> input password -> encounter captcha -> restart program grabbing next email/password combination
 

Вложения

Try read captcha element in html code, if found, restart instance, if not, continue.
 

Вложения

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)