Page 1 of 1

How does eValid work with values from a drop-down list

PostPosted: Mon Sep 25, 2017 12:26 pm
by GAlridge
Afternoon.

How do you compare values from the list in a drop-down list?

Thanks in advance.

Re: How does eValid work with values from a drop-down list

PostPosted: Tue Sep 26, 2017 9:06 am
by eValid
GAlridge wrote:Afternoon.

How do you compare values from the list in a drop-down list?

Thanks in advance.


Thanks for posting GAlridge.

In this situation, when you say "values" [plural] you seem to be implying that you want to make MULTIPLE comparisons.

eValid, as you know, is command-line oriented. So to compare TWO things you need to set up your script to read and compare, and then read and compare.

Assuming you want BOTH facts to be true, this works great, because if both are true then the sequential comparison acts like an AND operation.

If you want to do an "OR" operation, so that one or the other can be false and the test still pass, then you may have to do that kind of logic in a command-line script that you execute using the SystemCall or SystemCallWait command.

It is a VERY GOOD IDEA to make sure that the DOM content you are checking is stable before you run the test. Here are the commands that synchronize first (and thus effectively validate) DOM items:

http://e-valid.com/Products/Documentati ... n.dom.html

Caution: If you want to validate position in the list -- that is, if you expect the position of a particular item to move around -- then you may need to search first using IndexFindElement command, and validate based on that particular DOM SourcIndex value.


-- eValid Support