assaf/zombie

Using proxy doesn't work

Opened this issue · 2 comments

I'm using a proxy and it just doesnt work, and to test if the proxy works I managed to send an HTTP request with it. but it doesn't work with Zombie, code:

const Browser = require("zombie");

const browser = new Browser();
browser.proxy = "http://PrivateProxy:port"

browser.visit('example.com', () => {
  console.log(browser.document.querySelector("input[name=email]")) // -> returns null
});

When testing without proxy it doesnt return null

can you check
console.log(browser.html()) instead of testing one specific input field.

may be there is an proxy error, which does not contain your input field.

I have a similar problem.

const Browser = require('zombie');

let browser = new Browser({site: 'somedomain.com'});

browser.proxy = 'http://proxy:port';

browser.visit('/subpage', () => {
  console.log(browser.html());
}); 

console.log(browser.html()) is an empty string.

Is there a bug in the proxy settings in zombie.js or did i make a mistake?