by eValid » Sat Apr 20, 2013 10:45 am
When eValid records a body of text in an ElementFocus command it is setting up the script to play back in a way that will notify you if any changes happened in the element just brought into focus.
eValid does this because the working assumption is that you will want to KNOW whether the content of a page has changed, or not.
At playback time, if the text matches, the playback continues.
If the text does NOT match eValid now uses Adaptive Playback to try to find a matching element on the page with the same text, under the assumption that the element (based on its content) may have moved to a new location on the page. If evalid can't find a matching element that will be noted, and the command logs an ERROR in the EventLog.
In practical terms, however, we have seen many cases when the text that is focused is so complex that the search by eValid for a matching element takes a very long time and/or almost always fails. Sometimes a great feature gets in the way of a usefule test. So, in such a case you may choose to delete the entire command.
eValid Support Team