Page 1 of 1

Can I use eValid commands to remove or alter DOM elements

PostPosted: Fri Feb 16, 2018 1:10 pm
by EugeneC
Afternoon.

Can I use eValid's commands remove or alter the contents of a specific property of a DOM element?

Please explain how?

Thanks

Re: Can I use eValid commands to remove or later DOM element

PostPosted: Mon Feb 19, 2018 11:22 am
by eValid
EugeneC wrote:Afternoon.

Can I use eValid's commands remove or alter the contents of a specific property of a DOM element?

Please explain how?

Thanks


Thanks for asking EugeneC.

There are commands in eValid that let you modify the content of any property in any DOM element at all.

First, you have to find the element you want to modify if you don't already know the index.

If you know the index, the command is:

IndexSet index-value

Or you may need to search for it using, for example, the command:

IndexFindElement {parameters}

where the parameters are described here:

http://e-valid.com/Products/Documentati ... ation.html

Next, you have to get the value you want into the internal variable "ElementValue" and you do this with the command:

ValueSet "string"

You can't actually delete an element (due to certain constraints in the DOM API) but you can set the property content to null with the command:

ValueSet ""

which is the null string.

Finally, you put the value you want into the property name you want in the DOM element you've found, with the command:

ValuePutElement wid name "frame_path"

However, Caution is advised. If you manage to set some DOM element property to something weird results thereafter in that web page are not guaranteed.

These steps are not for the weak of heart!


-- eValid Support