clearing a form field using EVENT

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
Posts: 1
Joined: Mon Jul 26, 2021 6:57 am

clearing a form field using EVENT

Post by 123pierre » Mon Jul 26, 2021 7:16 am


I am using iMacros 2021.0 , windows 10. (Macros version

In a complicated form made I believe in Ajax + Angular, I am trying to complete a form. None of the conventional tag method are working so I try to use the event command.
The problem is that entering a field using :

EVENT TYPE=click SELECTOR="#inputId_15" BUTTON=0 POINT=(675,219)
EVENTS TYPE=keypress SELECTOR="#inputId_15" CHARS=01/01/2070

the field is not cleared first and the "01/01/2070" is added to the current date which results something like "15/06/201001/01/2070".
Since I am on iMacros the commands KEY and MODIFIERS are not possible. ( Tried ctrl-a or key=8 in vain ) I try to select all by mousedown + mousemove + moveup but this is very unstable and doesn't work 100%.

Any solutions?

By the way, I am under a trial period of the licence iMacros Enterprise Evaluation.
I searched everywhere but didn't find the DirectScreen Technology editor. ( ) Is that normal ??

Thanks a lot.

Tom, Tech Support
Posts: 3732
Joined: Mon May 31, 2010 4:59 pm

Re: clearing a form field using EVENT

Post by Tom, Tech Support » Tue Aug 10, 2021 5:10 pm

Hi Pierre,

Sorry I am just seeing this here now. Did you manage to find a resolution for yourself or do you still require some assistance?

Tom, iMacros Support
Posts: 411
Joined: Fri Feb 20, 2015 9:27 pm

Re: clearing a form field using EVENT

Post by techimac » Thu Aug 12, 2021 6:17 am

try ctrl a, ctrl x
Available for custom iim, javascript iMacros scripts
Post Reply