Gets an element by selector and asserts it contains the specified text.
Then I pw get element by selector "error.message" to contain text "invalid credentials" Copy
Then I pw get element by selector "error.message" to contain text "invalid credentials"
Gets an element by selector and asserts it contains the specified text.