Skip to content

Instantly share code, notes, and snippets.

@Prinzhorn
Created April 19, 2013 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Prinzhorn/5421228 to your computer and use it in GitHub Desktop.
Save Prinzhorn/5421228 to your computer and use it in GitHub Desktop.
StackOverflow 16106952
function waitForKeyElements (selectorTxt, actionFunction) {
if (!getElementByXPath(selectorTxt)) {
setTimeout(function () {
waitForKeyElements(selectorTxt, actionFunction);
}, 300);
} else {
actionFunction();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment