Verify Presence of an Element
Verify Presence of an Element
We can use following two commands to verify the presence of an
element:
·
verifyElementPresent -
returns TRUE if the specified element was FOUND in the page; FALSE if otherwise
·
verifyElementNotPresent -
returns TRUE if the specified element was NOT FOUND anywhere in the page; FALSE
if it is present.
The test script below verifies that the UserName text box is
present within the Mercury Tours homepage while the First Name text box is not.
The First Name text box is actually an element present in the Registration page
of Mercury Tours, not in the homepage. strong>Verify Presence of a Certain
Text
Comments
Post a Comment