--
You received this message because you are subscribed to the Google Groups "zombie.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zombie-js+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "zombie.js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/zombie-js/XZaCr2QjE1o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to zombie-js+...@googlegroups.com.
var browser = Browser.create();
//browser.silent = true;
//browser.debug = false;
var closeIt = false;
browser.visit(file, function () {
browser.wait(function() {
return (closeIt === true);
});
});
browser.on('console', function (type, data) {
data = JSON.parse(data);
closeIt = (parseEvents(data[0], data[1]));
});
function parseEvents(name, data) {
return (name === "jasmine.jasmineDone");
}
For more options, visit https://groups.google.com/d/optout.
browser.wait(function() {
return (closeIt === true);
}, function(){} );
});
browser.visit('localhost:8000', function () {
browser.wait({element : '#_completed'}).then(function() {
console.log(browser.errors); // Returns []
console.log(browser.window.querySelector('#_completed_')) // Logs null...
});
});
On Sat, Jan 31, 2015 at 12:41 PM, Prathap Reddy <svapr...@gmail.com> wrote:
I opened the same using Chrome and there are no errors reported. Could you please let me know whether I am using correct syntax.
--