Note that there are some explanatory texts on larger screens.

plurals
  1. POzombie.js and Google Maps API
    text
    copied!<p>I'm having a problem with zombie.js testing framework and the Google Maps API.</p> <p>I have a simple zombie.js that loads a home page and tries to click a Sign In link. However, when I look at what comes back for the home page HTML (from the perspective of the zombie.js browser object), I see only this in the body section:</p> <pre><code>&lt;body&gt; &lt;script src="https://maps.gstatic.com/intl/en_us/mapfiles/api-3/9/12/main.js" type="text/javascript"&gt;&lt;/script&gt; &lt;/body&gt; </code></pre> <p>If I remove the Google Maps javascript from the original page, everything works fine and I get the full section. Requesting a different page that doesn't use maps API also works fine.</p> <p>I see a related question here, but the workaround isn't fully described: <a href="https://github.com/assaf/zombie/issues/250" rel="noreferrer">https://github.com/assaf/zombie/issues/250</a></p> <p>Can anyone help me with the full workaround to this?</p> <p>Here is the zombie.js code in question:</p> <pre><code>suite('Zombie Sign In', function() { test('Home page should have sign-in link', function(done) { var browser = new Browser(); browser.debug = true; browser.authenticate().basic(conf.basicAuth.username, conf.basicAuth.password); browser.visit(conf.baseURL, function(e, browser) { console.log(browser.html()); // here is where I get the empty body section browser.clickLink("Sign In", function() { browser.text("title").should.eql('my title'); done(); }); }); }); }); </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload