Error in Posting Random names in Textbox

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
iTMaster28
Posts: 1
Joined: Sun Jan 26, 2020 7:56 am

Error in Posting Random names in Textbox

Post by iTMaster28 » Sun Jan 26, 2020 8:04 am

I have Created A Code For iMacros Which apply random names in textbox .But When the textbox is disabled its keep changing the name after that.

I also use Play loop button to start. Random Names Applied on website when any one of name is match website set the TextField disabled i want to stop loop process on that point

Code: Select all

VERSION BUILD=10021450
WAIT SECONDS =10
SET !VAR1 EVAL("var letters = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','w','x','y','z']; var string = ''; for(var i = 0; i < 4; i++){string += letters[parseInt(Math.random() * 25)]}; string")
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:discount-form ATTR=ID:discount-code CONTENT={{!VAR1}}
TAG POS=2 TYPE=SPAN ATTR=TXT:Apply<SP>Discount

please look at the code and try to fix it .it should stop on disabled textbox
User avatar
thecoder2012
Posts: 405
Joined: Sat Aug 15, 2015 5:14 pm
Location: Internet
Contact:

Re: Error in Posting Random names in Textbox

Post by thecoder2012 » Mon Jan 27, 2020 2:06 am

iTMaster28 wrote:
Sun Jan 26, 2020 8:04 am
I also use Play loop button to start. Random Names Applied on website when any one of name is match website set the TextField disabled i want to stop loop process on that point
Then change your Javascript in your EVAL command. Block the name and make a new random name. Where is your problem? :?:
iTMaster28 wrote:
Sun Jan 26, 2020 8:04 am

Code: Select all

VERSION BUILD=10021450
WAIT SECONDS =10
SET !VAR1 EVAL("var letters = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','w','x','y','z']; var string = ''; for(var i = 0; i < 4; i++){string += letters[parseInt(Math.random() * 25)]}; string")
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:discount-form ATTR=ID:discount-code CONTENT={{!VAR1}}
TAG POS=2 TYPE=SPAN ATTR=TXT:Apply<SP>Discount
please look at the code and try to fix it .it should stop on disabled textbox
Version? Browser? Or test HTML-site/Link to your website with disabled textbox thing?
Join 9kw.eu Captcha Service now and let your iMacros continue downloads and scripts while you sleep. - Custom iMacros? Contact me! :idea:
Post Reply