Last active
May 18, 2017 07:36
-
-
Save avuori/c881250940fb55041178b7c81a88f57d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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