|
Background
The eValid DOM index/motion algorithmic/structural testing capability makes it possible
to produce robust tests which behave independently of page specifics.
Use of the DOM Manipulation Resources leads to tests that are able to operate at a level of abstraction above that of the usual eValid command level.
Description of Tested Feature
This example navigates to an active link that points to a specific URL.
The passage may be different if the navigation is performed
via a JavaScript passage.
Index/Motion Command Sequence
Here is the command sequence that achieves the result:
... IndexSet 0 IndexFindElement wid DOWN "innerText" "something" IndexFollowLink wid "" ...
eValid Script
Here is the eValid script that is an actual instance of this action.
# Recording by eValid V9 # Copyright 2012 by Software Research, Inc. # Recording made on: Microsoft Windows XP Service Pack 3 (IE 7.0.5730.13) # ProjectID "Project" GroupID "Test" TestID "example11" LogID "AUTO" ScreenSize 1280 1024 FontSize 1 DeleteCache DeleteCookies InitLink "http://www.e-valid.com/Products/License/toppage.9.html" GotoLink 0 "http://www.google.com" "" Wait 1803 # Recorded command... #------------------------------------------------------------------------ FollowLink 0 195 "About Google" "http://www.google.com/intl/en/about.html" "" #------------------------------------------------------------------------ InitLink "http://www.e-valid.com/Products/License/toppage.9.html" GotoLink 0 "http://www.google.com" "" Wait 1803 # Structural command equivalent... #------------------------------------------------------------------------ IndexSet 0 IndexFindElement 0 DOWN "innerText" "About Google" "" IndexFollowLink 0 "" #------------------------------------------------------------------------ # End of script.
Download example11.evs
How It Works
This is a normal HTML navigation, NOT a JavaScript-based navigation.
The script finds the innerText string "About Google" and follows the referenced URL link.