Continuing Script AFTER Prompt

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
Chris3460
Posts: 8
Joined: Mon Mar 11, 2019 3:00 pm

Continuing Script AFTER Prompt

Post by Chris3460 » Tue Mar 12, 2019 6:33 pm

iMacros 10.0.2.1450 (Free for Firefox)

Firefox 65.0.2

Windows 7 Pro (Version 6.1 Build 7601; SP1)

I'm trying to run a script and the two variables I need to input are the customer's name and the customer's phone number. I made the discovery that the script will just keep on running in the background while the prompts are awaiting input, and by the time you get the data entered, it's way past that page, and the result shows as "Undefined" in the final product. This is what I have:

Code: Select all

PROMPT "Enter Customer Name:" !VAR2
PROMPT "Enter Customer Phone Number:" !VAR3
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:editPage ATTR=NAME:00N60000001yXQW CONTENT={{!VAR3}}
TAG POS=1 TYPE=TEXTAREA FORM=NAME:editPage ATTR=NAME:cas15 CONTENT=Customer<SP>Name:<SP>{{!VAR2}}
I thought I'd try PAUSE, but found I need to manually resume once I'm ready. WAIT is also an option, but I don't really like that one either. Not sure if there is another option, but does anyone know if it's possible to get the script to continue only after the values are entered into the prompt?
Chris3460
Posts: 8
Joined: Mon Mar 11, 2019 3:00 pm

Re: Continuing Script AFTER Prompt

Post by Chris3460 » Tue Mar 12, 2019 6:58 pm

Figured it out. I needed to move the variable prompts to be the very first step in the script.
Post Reply