ZombieJS - How do I call JavaScript functions or check JavaScript values?

animate

New Member
\[code\]var Browser = require("zombie");// Load the page from localhostbrowser = new Browser()browser.visit("http://localhost:3000/", function () { // Let's say the page has window.jQuery // How do I access it?});\[/code\]So, How do I access the window and the javascript variables? I want to check if my script tracks 'clicks' correctly. I want to do something like \[code\]expect(browser.document.window.myScript.click_counter).toBe 5\[/code\].
 
Top