I am testing a highly javascript based application on Internet Explorer 8.0 with UFT 11.50. I would like to know how UFT implements the "Click" method under the hood when using the Web Add In. Does UFT send a windows mouse event? Does it fire an event (onclick, onmousedown, onmouseup)? I have been seeing some mixed results with my application.
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
It can do either, by default UFT replays using DOM events but you can change the replay type to device in which case it queries the HTML element's location and simulates a mouse click on that location.
The replay mode is controlled by Tools->Opitions->Web->Advanced->RunSettings or in the script by:
Note that in event mode UFT doesn't just send a
click
, it sends other events that typically are used by applications (such asfocus
,mousedown
andmouseup
) unless the registry value ReplayOnlyClick in the WebPackage settings is set to1
.