HI. I would like my script to fail and throw an error when a particular test appears on the recorded site. I know how to verify an existing text on the site but don't know how to make the script error out a text ("Sorry, something went wrong"). The script is just searching for a keyword and capturing the result. When the result page renders with a message "Sorry, something went wrong" and doesn't have the search result that is needed the script does not fail. Because it has the keyword that it is reaching and verifying that text. So I just need to know how to make the script fail when this message "Sorry, something went wrong shows up.
↧