Commonly Used Selenium Commands
Domains:
Selenium
To conclude our introduction of Selenium, we'll show you a few typical Selenium commands. These are probably the most commonly used commands for building tests.
open
- opens a page using a URL.
click
- 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.
Semantic portal