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