Commonly Used Selenium Commands

by thulashi 2015-01-08 13:10:58

Most commonly used selenium commands for building tests.

open
opens a page using a URL.

click/clickAndWait
performs a click operation, and optionally waits for a new page to load.

verifyTitle/assertTitle
verifies an expected page title.

verifyTextPresent
verifies expected text is somewhere on the page.

verifyElementPresent
verifies an expected UI element, as defined by its HTML tag, is present on the page.

verifyText
verifies expected text and its corresponding HTML tag are present on the page.

verifyTable
verifies a table’s expected contents.

waitForPageToLoad
pauses execution until an expected new page loads. Called automatically when clickAndWait is used.

waitForElementPresent
pauses execution until an expected UI element, as defined by its HTML tag, is present on the page.
1568
like
0
dislike
0
mail
flag

You must LOGIN to add comments