Query code from SMS RS232/USB and put to website

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information:CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
Un-known
Posts: 1
Joined: Thu Nov 24, 2016 11:23 am

Query code from SMS RS232/USB and put to website

Post by Un-known » Thu Nov 24, 2016 12:08 pm

How to put data from autorisation device to form ?
it works like this

get pre auth form phone > Your device number is: d33ffffff > cut to ffffff > preauth
put preauth to form1, press button
wait for code from device > your one time code is: 1111 > cut to 1111 > code
put code to form2, press button
loop
put data to form3 from csv file, del line from csv file >> log with status (can be checked on website)
repeat loop 10 times
logout
end

Code: Select all

VERSION BUILD=9030808 RECORDER=FX
TAB T=1
URL GOTO=https://site.com/
TAG POS=1 TYPE=A ATTR=TXT:Login
TAG POS=1 TYPE=INPUT:TEL FORM=ID:form0 ATTR=ID:Phone CONTENT=ffffffffff #must be quered from SMS device
TAG POS=1 TYPE=BUTTON FORM=ID:form0 ATTR=TXT:NEXT
TAG POS=1 TYPE=SELECT FORM=ID:form0 ATTR=ID:cell1 CONTENT=%12
TAG POS=1 TYPE=SELECT FORM=ID:form0 ATTR=ID:cell2 CONTENT=%12
TAG POS=1 TYPE=SELECT FORM=ID:form0 ATTR=ID:cell3 CONTENT=%12
TAG POS=6 TYPE=SPAN ATTR=TXT:
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ID:form0 ATTR=ID:Reg2 CONTENT=YES
TAG POS=8 TYPE=SPAN ATTR=TXT:
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ID:form0 ATTR=ID:Reg3 CONTENT=YES
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ID:form0 ATTR=ID:ConfirmPassword CONTENT=securepassword
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:form0 ATTR=ID:SmsCode CONTENT=1111 #must be quered from sms device
TAG POS=1 TYPE=BUTTON FORM=ID:form0 ATTR=TXT:LOGIN
TAG POS=1 TYPE=A ATTR=TXT:Check1
TAG POS=1 TYPE=A ATTR=TXT:Check2
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:form0 ATTR=ID:InputCode CONTENT=aaaaaaaa #must be quered from CSV file, delete line after query
TAG POS=1 TYPE=SELECT FORM=ID:form0 ATTR=ID:SS CONTENT=%45
TAG POS=1 TYPE=BUTTON FORM=ID:form0 ATTR=TXT:NEXT
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:data ATTR=ID:1 CONTENT=one
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:data ATTR=ID:2 CONTENT=two
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:data ATTR=ID:3 CONTENT=three
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:data ATTR=ID:4 CONTENT=four
TAG POS=1 TYPE=BUTTON FORM=ID:data ATTR=TXT:NEXT
TAG POS=1 TYPE=I ATTR=CLASS:fa<SP>fa-bars<SP>open&&ARIA-HIDDEN:true&&TXT:
TAG POS=1 TYPE=A ATTR=TXT:LOGOFF
--
iMacros - latest, FF:50 portable, OS Win 8.1 English
Post Reply