Skip to content

Instantly share code, notes, and snippets.

@avuori
Last active May 18, 2017 07:36
Show Gist options
  • Save avuori/c881250940fb55041178b7c81a88f57d to your computer and use it in GitHub Desktop.
Save avuori/c881250940fb55041178b7c81a88f57d to your computer and use it in GitHub Desktop.
// For checking that a URL contains something, create a javascript step and write the following:
// You control what to find from the URL by changing the value of the "find" variable.
var find = "foo";
if (window.location.href.indexOf(find) >= 0) {
return callback(true);
} else {
return callback("URL does not contain: " + find);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment