How to get URLs, username, password, email from a file?

messageinabox

Client
Регистрация
25.04.2011
Сообщения
32
Благодарностей
0
Баллы
6
Hi,

I'm a new user to ZP, please bear with me. :-)

I have text file that has the following format:
URL1:username1:password1:email1
URL2:username2:password2:email2
URL3:username3:password3:email3

Now, since the URLs are on the same platform (example - smf,etc) I am going to use the same template to post to these URLs.

Here's what I want to do:
Get URL1 from the file
Go to URL1
Click Login
Get username1 from the file
Paste username1 to the username filed
Get password1 from the file
Paste password1 to the password field
.
.
.
After posting, save the profile links to a text file
Then, loop until all the lines in the file are processed.

My questions:
-- How can I make sure that it will get the information from the same line? Like if it get URL1, it should get username1 and password1.
-- Do I have to make a loop? If yes, how can I do that?
-- For same platforms, some have captcha some don't have captcha. How will I say to Projectmaker if there's a captcha, solve this if there's none, go ahead to the next field?

Sorry too many newbie question. I'm trying to create myself a template and I really don't know what to do.

Thanks.
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113
Hi,
I'd make it such way:
1) take first line from file with removing using GET->MACRO and macro {-File.GetString-|-PATH-|-0-|-true-}
2) then using execution result of previous branch and macro split take all necessary details for us
{-String.Split-|-EXECUTION RESULT-|-:-|-0-} - URL
{-String.Split-|-EXECUTION RESULT-|-:-|-1-} - username
{-String.Split-|-EXECUTION RESULT-|-:-|-2-} - password
{-String.Split-|-EXECUTION RESULT-|-:-|-3-} - email
 

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