Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] is it not possible to use no proxy with 'per-context' lauched instance? #5818

Closed
Nisthar opened this issue Mar 13, 2021 · 4 comments

Comments

@Nisthar
Copy link

Nisthar commented Mar 13, 2021

is it not possible to use no proxy with 'per-context' lauched instance?

I am getting "Exception has occurred: Error: NS_ERROR_UNKNOWN_PROXY_HOST"

if i do

browser = await firefox.launch({
        headless: false,
        proxy: { server: "per-context" },
        timeout: 0,
      }); 
context = await browser.newContext();
@pavelfeldman
Copy link
Member

It is not. But you can specify default proxy instead of the per-context string.

@Nisthar
Copy link
Author

Nisthar commented Mar 13, 2021

It is not. But you can specify default proxy instead of the per-context string.

Yeah but i need to launch a new window everytime i don't use proxy. i would prefer to use/not use proxy inside the context.

@pavelfeldman
Copy link
Member

Can you launch one browser with per-proxy and another browser w/o proxy and just keep them running? That way you only need to launch 2 browsers.

@Nisthar
Copy link
Author

Nisthar commented Mar 13, 2021

Can you launch one browser with per-proxy and another browser w/o proxy and just keep them running? That way you only need to launch 2 browsers.

Its a workaround but it should work.

@Nisthar Nisthar closed this as completed Mar 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants