Herbie Logo

Verify Command Playground

Instructions

Use the verify command to check if the success message on the right is displayed correctly.

Open the Herbie extension and type the following commands in Herbie Tab:

By ID:

verify "Success" in '#message'

By Class:

verify "Success" in '.message-class'

By XPath:

verify "Success" in "//div[@role='alert']"

This will verify that the text "Success" is present in the message on the right.