Enter data in Text Box using EVENT Mode

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.
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
techimac
Posts: 287
Joined: Fri Feb 20, 2015 9:27 pm

Enter data in Text Box using EVENT Mode

Post by techimac » Tue Feb 12, 2019 6:55 pm

Code: Select all

TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:addressForm ATTR=ID:city CONTENT=city
TAG POS=2 TYPE=INPUT:TEXT FORM=NAME:addressForm ATTR=ID:city CONTENT=city

EVENT TYPE=CLICK SELECTOR="#city" BUTTON=0
EVENTS TYPE=KEYPRESS SELECTOR="#city" CHARS="acity"
EVENT TYPE=CLICK SELECTOR="#cityname>SPAN>DIV>DIV>DIV" BUTTON=0
Normal Mode is not entering text
so tried EVENT Mode

But problem is its same code for both text boxes

When I run EVENT Mode code, only 1st text box is filled twice

Windows 8.1
iMacros 8.9.7
Firefox 52
Post Reply