Certified Selenium Professional Learning Resources Commonly Used Selenium Commands

Learning Resources
 

Commonly Used Selenium Commands


These are probably the most commonly used 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.
 For Support