Here are some example programs, coded in C++/CPP, that illustrate use of the eValid Programmatic Interface (EPI) that gives you direct "programmable access" to the eValid Automated Browser.
NOTE: You may experience different playback results depending on your environment's OS and IE versions...)
|Example01||example01.cpp||example01.exe||This very short example involves just a few evalid commands,
an InitLink and a GotoLink.
It's main purpose is to illustrate how the EPI interface is structured
from the programmers' point of view. (No output to command window included.)
You can see both the CPP program and the non-EPI eValid script for comparison.
|Example02||example02.cpp||example02.exe||Similar to the above, this example also is 1:1 with
a corresponding eValid script.
This script involves running an IndexFind command that identifies
[to an internal variable] a particular field. (No output also.)
The same command in the EPI interface performs the same way but in this case the actual index value is returned into the CPP program. That index is available to be used for other purposes in the CPP code.
|Example03||example03.cpp||example03.exe||Here is a CPP program that performs a particular
kind of search that can only be done easily with regular
eValid command sequences of some complexity.
The program uses a search engine to search for a particular search term, and then computes [by iterating and counting] the first search-results page that includes both the searched-for string and a target URL.
This program answers the common Search Engine Optimization (SEO) question, "If I search for KEYWORD, does my website show up in the search results and if so, on which page does it appear?"
|Example04||example04.cpp||example04.exe||Here there is a regular eValid script that does a number of different kinds of things, and the CPP program duplicates the script exactly. (Includes output of logfile events to the command window.)|
|Example05||example05.cpp||example05.exe||The program in this example does not have
a direct eValid script equivalent.
The program navigates to a user-specified URL and then, within that page, finds the specific index of the [first] element in that page for which a specified attribute NAME has a specified VALUE. (NOTE: You need to launch this as a batch command in order to view the output data inside the command window -requires command line parameters.)
This read is done from the DOM of the page as it currently exists, which may or may not be what was sent down from the server, depending on what kind of AJAX-type operations were performed on it.
|Example06||example06.cpp||example06.exe||The program in this example does not have
a direct eValid script equivalent.
Similar to Example05, this program changes the value of attribute NAME at a specified index on the page to the specified VALUE. (NOTE: You need to launch this as a batch command in order to view the output data inside the command window -requires command line parameters.)
This update action is done to the DOM of the page as it currently exists, without permission of the browser or the server. This is a powerful feature and user caution is advised.
|Example07||example07.cpp||example07.exe||This program duplicates some of the functions of the eValid Gmail Example script (top and bottom actions) that demonstrates DOM-based actions. (Includes output of logfile events to the command window.)|
|Example08||example08.cpp||example08.exe||This program duplicates some of the functions of the eValid MapsLive example that uses a set of commands to automatically synchronize this sophisticated AJAX application. (Includes output of logfile events to the command window.)|