Created
August 5, 2016 20:18
-
-
Save prettydiff/8ca682cb042e2220a40ad01518eb4581 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
var expWebTest = (function () { | |
var test = function () { | |
/*var delay = function (testExpression, callback) { | |
if (testExpression === true) { | |
return setTimeout(function () { | |
console.log("test delay"); | |
delay(node, callback); | |
}, 100); | |
} | |
console.clear(); | |
console.log("delay complete"); | |
callback(); | |
}; | |
delay(document.getElementsByTagName("body")[0] === null, function () { | |
setTimeout(function () { | |
console.log("asdfasdf"); | |
}, 30000); | |
});*/ | |
alert("asdf asdf asdf"); | |
}, | |
webdriver = require("selenium-webdriver"), | |
By = webdriver.by, | |
until = webdriver.until, | |
driver = new webdriver.Builder().forBrowser("firefox").build(); | |
driver.get("internal URL"); //I am using an actual URL here | |
driver.executeScript(test); | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment