Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Using proxy doesn't work #1177

Open
TheOnlyArtz opened this issue Oct 7, 2018 · 2 comments
Open

Using proxy doesn't work #1177

TheOnlyArtz opened this issue Oct 7, 2018 · 2 comments

Comments

@TheOnlyArtz
Copy link

TheOnlyArtz commented Oct 7, 2018

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

@TheFive
Copy link

TheFive commented Oct 27, 2018

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.

@cpietsch82
Copy link

cpietsch82 commented Apr 16, 2019

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants