Showing posts with label assertElementPresent command. Show all posts
Showing posts with label assertElementPresent command. Show all posts

"assertElementPresent" Command

Selenium assert element present command is useful to confirm element availability on page after user taking some action or navigate to some other page. Selenium assert element present will force selenium to stop execution if targeted element not found on the page. It will continue execution if return result of condition "assertElementPresent" = false and will stop execution if return result of condition "assertElementPresent" = true.

In bellow given example, command "assertElementPresent" will verify that element "id=gbqfba" is there on the page or not. if element "id=gbqfba" (google search button) found on the page then it will execute next