Wait commands
andWait commands
These
are commands that will wait for a new page to load before moving onto the next
command.
Examples
are
·
clickAndWait
·
typeAndWait
·
selectAndWait
waitFor commands
These
are commands that wait for a specified condition to become true before
proceeding to the next command (irrespective of loading of a new page). These
commands are more appropriate to be used on AJAX-based dynamic websites that
change values and elements without reloading the whole page. Examples include:
·
waitForTitle
·
waitForTextPresent
·
waitForAlert
Summary
·
The three most commonly used commands in verifying page elements
are:
o verifyElementPresent/
verifyElementNotPresent
o verifyTextPresent/
verifyTextNotPresent
o verifyElementPositionLeft/
verifyElementPositionTop
·
Wait commands are classified into two:
o andWait
commands - used when a page is expected to be loaded
o waitFor
commands - used when no new page is expected to be loaded
Comments
Post a Comment