The capability to send a click event to the DOM

Applying eValid to AJAX applications that require advanced DOM-based methods.

The capability to send a click event to the DOM

Postby aMarc » Mon Jul 30, 2012 4:11 pm

Does eValid have the capability to send a click event to the DOM?
aMarc
 
Posts: 1
Joined: Mon Jul 30, 2012 3:29 pm

Re: The capability to send a click event to the DOM

Postby eValid » Wed Aug 01, 2012 11:12 am

aMarc wrote:Does eValid have the capability to send a click event to the DOM?
Yes, and there are several different ways this is done. With increasing complexity and sophistication and power. Here is a rundown:

(1) The recording engine may write a click command automatically, and in this case you don't have to do anything to send the event to the DOM. eValid does it for you automatically.

(Incidently, event communication to the DOM is the way eValid works for pretty much every kind of test playback action. eValid, being a browser in its own right, has direct access to the DOM for its own purposes, which mainly of course are for reproducing user inputs.)

(2) There are commands like IndexElementClick and IndexSubmitClick which send click events to a particular DOM element -- one that you have identified beforehand using, for example, the IndexFindElement command. In this case all you need to know is the specific target of your DOM search, so that eValid can know into which DOM element to send the click event.

(3) There is also the IndexElementEvent command that gives you a great deal more power in sending events to a DOM element -- including the onclick and ondblclick events. With the extra power comes some extra complexity -- so you have to be quite careful about which event you send to which element and what you expect the application to do with it. Not every element accepts every kind of event and some elements behave badly when sent events for which they are not properly prepared (via JavaScript that is watching that element for events, for example).

-- eValid Support
eValid
 
Posts: 2392
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to AJAX Applications & DOM Processing

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons