06. mai 2019
Des Mouse Events dans les applications web
Here comes one more short Blog article, which will shed some light on the mouse events and specifically semi-hard events. QF-Test uses semi hard events as default (based on web ajax toolkit, browser and browser version, OS etc), but not all cases.
There are three event types available
- Soft: A soft event is an artificial event which is inserted directly into the event queue. They are inserted directly at DOM/JavaScript level.
- Semi hard: QF-Test own teminology. This is an artificial system event which gets sent to the browser. The browser has to interpret it and create the relative (soft) events for the web application.
- Hard: a real movement of the mouse cursor and a simulation of a mouse down and mouse up which triggers a system/os event.
Set semi hard events via SUT Script before the mouse click:
rc.setOption(Options.OPT_WEB_SEMI_HARD_EVENTS, True)
reset the option via:
rc.unsetOption(Options.OPT_WEB_SEMI_HARD_EVENTS)