The renewal maintenance has officially ended for Progress iMacros effective November 30, 2023.
This Wiki site will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely, The Progress Team
Difference between revisions of "EVENT"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
To test the EVENT recording, change the record options click mode in iMacros Browser or IE. | To test the EVENT recording, change the record options click mode in iMacros Browser or IE. | ||
+ | |||
+ | EVENTS commands are collections of EVENT commands of the same kind. | ||
===Syntax [[Image:Ff-icon.png|Firefox]] === | ===Syntax [[Image:Ff-icon.png|Firefox]] === |
Revision as of 13:40, 13 July 2015
EVENT is a new experimental command to automate web controls that the classic TAG command can not automate:
- Drag & Drop
- Sliders
- Tricky date control
- Ajax drop&down boxes
To test the EVENT recording, change the record options click mode in iMacros Browser or IE.
EVENTS commands are collections of EVENT commands of the same kind.
Syntax
EVENT TYPE=type [SELECTOR|XPATH]=localizer [BUTTON|POINT|CHAR|KEY]=[button|point|char|key] [MODIFIERS=modifiers]
Parameters
- TYPE
- The event type to be fired by the command. Allowed values are:
- Mouse events
- MOUSEDOWN,
- MOUSEMOVE,
- MOUSEUP,
- CLICK,
- DBLCLICK
- Keyboard events
- KEYDOWN
- KEYUP
- KEYPRESS
- Mouse events
- The event type to be fired by the command. Allowed values are:
- SELECTOR or XPATH
- The query string to localize the element on the page. This can be either an XPATH expression, or a CSS selectors query
- BUTTON, POINT, CHAR, or KEY
- It depends on which event type is being used. Mouse events need a BUTTON or a POINT. Keyboard events need CHAR or KEY
- MOUSEDOWN, CLICK and DBLCLICK need a BUTTON
- MOUSEUP and MOUSEMOVE use a POINT
- KEYDOWN, KEYUP, and KEYPRESS use CHAR or KEY
- It depends on which event type is being used. Mouse events need a BUTTON or a POINT. Keyboard events need CHAR or KEY
- MODIFIERS
- A combination of CTRL, ALT, SHIFT, META. Keys held pressed during the mouse events.
Examples
Use the CLEAR command so that times of website response measurements are not influenced by using local cache data:
URL GOTO=https://moqups.com/#!/ EVENT TYPE=MOUSEDOWN SELECTOR="#preview-svg>svg>svg>svg>foreignObject>DIV" BUTTON=0 EVENTS TYPE=MOUSEMOVE SELECTOR="#preview-svg>svg>svg>svg>foreignObject>DIV" POINTS="(131,254),(132,254),(134,254),(136,255),(139,256),(142,256),(147,256),(153,257),(160,257),(169,258),(190,258)" EVENT TYPE=MOUSEMOVE SELECTOR="#containment" POINT="(204,257)" EVENT TYPE=MOUSEUP POINT="(386,254)"
Enable the EVENT recording mode
Record drag & drop events
Record date and time selection
Record the selection from within an "ajaxy" drop-down
Notes
- Experimental command => Please report issues and suggestion with this command in the iMacros for Firefox user forum!
We are especially interested to hear about in websites that do not not despite using the new EVENT(s) command.