giovannibagigio wrote: ↑Fri Nov 27, 2020 1:07 am
Hi. This is my first post here in forum. I need help on 2 different ideas.
first one is:
I am trying to create random (multiple) accounts on simple page then save accounts on csv.
I need to Generate random emails and passwords then save them to csv/txt.
My code looks like this but something is missing..
Code: Select all
URL GOTO=https://www.register.com/register.php?=
TAG POS=1 TYPE=INPUT:EMAİL ATTR=NAME:"register email" CONTENT=((HERE RANDOM GENERATED EMAILS?))
TAG POS=1 TYPE=DIV ATTR=ID:container
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD ATTR=NAME:register-password CONTENT=((SIMPLE PASSWORD.))
TAG POS=1 TYPE=DIV ATTR=ID:container
TAG POS=2 TYPE=BUTTON:SUBMİT ATTR=TXT:"REGISTER"
SAVEAS TYPE=EXTRACT FOLDER=C:\Users\PC\Documents\iMacros\DataSources FILE=usernamepassword.csv
second one:
Login with created accounts before (csv) (loop). and like the user page then log out.
Code: Select all
TAB T=1
TAB CLOSEALLOTHERS
' Specify input file (if !COL variables are used, iMacros automatically assumes a CSV format of the input file
SET !DATASOURCE "usernamepassword_.csv"
'Use the Play(Loop) button to run the macro in a loop
SET !LOOP 2
'Start at line 2 to skip the header in the file
'Increase the current position in the file with each loop
SET !DATASOURCE_LINE {{!LOOP}}
' Fill web form
URL GOTO=https://www.register.com/login.php?
TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:"login email" CONTENT={{!COL1}}
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD ATTR=NAME:login-password CONTENT={{!COL2}}
TAG POS=1 TYPE=DIV ATTR=ID:container
TAG POS=2 TYPE=BUTTON:SUBMİT ATTR=TXT:"Log in"
'
URL GOTO=https://www.register.com/useraccount1234
TAG POS=1 TYPE=DIV ATTR=ID:user-detail-app
TAG POS=1 TYPE=DIV ATTR=CLASS:fv-hv-img
TAG POS=1 TYPE=A ATTR=TXT:"Log out"
Can somebody help me to fix my codes? Thanks!
CIM...!
(Read my Sig... and the Forum Rules...!) => ... for me to read your Post and do any "Thinking"...
=> Edit your OP and mention your FCI at the very top of your OP... (preferably)... (=> Is the first and only Info I (need to) check to decide if I'll read a Post... and certainly answer it, ah-ah...! This is a Tech Forum...!)
I've only read your Thread Title until now, => "Create csv + read from csv.", (well, apart from checking your Post for Spam before approving it...) => I "think" I already understand what you want for Functionality, but I'll read your OP and post some Reply/Answer only once you'll have mentioned your FCI...
>>>
+ You may want to check my Quote and correct the Formatting (']code[' Tags) to improve the Readability of your OP (and the whole Thread)...
(Not Blocking for Helping you, "CIM" is...)
>>>
EDIT:
Hum..., I "couldn't resist", oops, and I read your OP after all, re-oops...!
But, re-hum-hum..., to manage your "Expectations", I don't help for the Functionality that you want, => Create fake/random Logins for some Website, this Functionality is usually only used by Spammers and I definitely never help Spammers, ah-ah...!
(The same Func could be "Legit" for Testing/Testers, but "Professional" Testers will be "clever" enough to find a Solution by themselves... I "happen" to be a "Professional Tester" myself, oops...! => Can I conclude you are a Spammer...!?
)
But OK, even if I (probably) won't help you for this Thread, you still may want to comply with "CIM", or I probably won't (try to) help you either "a next time"...
Good Luck with other (Advanced) Users for this one anyway....
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...