Can eValid be used to trigger JavaScript events

Discussion of the technology underlying the eValid solution.

Can eValid be used to trigger JavaScript events

Postby RobertB » Tue Feb 24, 2015 12:30 pm

Afternoon:

Can eValid trigger JavaScript events in the browser as part of the testing?

Can you please show what needs to be done for events to happens in the test?

Thanks
RobertB
 
Posts: 1
Joined: Tue Feb 24, 2015 12:23 pm

Re: Can eValid be used to trigger JavaScript events

Postby eValid » Wed Feb 25, 2015 6:05 pm

RobertB wrote:Afternoon:

Can eValid trigger JavaScript events in the browser as part of the testing?

Can you please show what needs to be done for events to happens in the test?

Thanks


Evening.

Thanks for asking RobertB.

That's a good question, but rather broad.

Web pages have lots of events processed in many ways by JavaScript.

eValid has two capabilities that might have the answer to your question.

But this is not for amateurs.

(1) First, there is a specific command that allows you to call a JavaScript that you know is inside the browser. The command is:

CallJavaScript wid function "[argument [, argument]]" "frame_path"

Where wid is the id of the window, function is the name of the method you want to call, including optional argument values in a comma-separated quoted list, and including the frame_path of the frame into which you want the execution command to be run.

(2) Second, eValid has a command that specifically sends signals (events) to an element in the page. Here is the manual page:

http://www.e-valid.com/Products/Documen ... event.html

This appears to be pretty complex, but that's because of the deep nature of the command.

As you can see, you have the choice of sending any type of event (by expressing its name) to any single name or property name/value pair.

You can even send the event to a particular point (x,y location) on an open window face, measuring the offset in pixels right and down from the upper left hand corner, which is at (0,0).

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


Return to Technology

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