|
Introduction
This page presents some short illustrative examples in outline form
of use of eValid's DOM manipulation facilities.
# Find the right page element...
IndexSet 0
IndexFindElement (...Parameters that define what is sought...)
# Now "sourceIndex" has the right value, so we use it to read...
ValueGet (...Parameters that describe which property value to get...)
# Now write to the file...
ValueSave OUTPUT
# Read the value to insert...
ValueRead INPUT
# Find where to make the modification...
IndexFindElement (...Parameters that define what is sought...)
# Put the string in "elementValue" into the required location...
ValuePut (...Parameters that describe which property value to get...)
# Find the URL of which you want to change the value...
IndexSet 0
IndexFindElement innerText "name of the link to change"
# Put the new value into the right DOM property...
ValueSet "New.URL.html"
ValuePutElement "innerHTML" ""
# Click on the new anchor tag...
IndexElementClick
...
# Find the "from"...
IndexSet 0
IndexFindElement innerText "name1"
ValueGet innerHTML
ValueSave OLD
ValueSet NEW-HTML-VALUE
ValuePut innerHTML
# ...do some other stuff...
# Now find the new location...
IndexSet 0
IndexFindElement innerText "name2"
ValueRead OLD
ValuePut innerHTML
ValueGet innerHtML
ValueSave OLD
ValueSet NEW
ValuePut innerHTML
...