Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

185
Vistas
How to configure proxy settings in JS Test café

I have been working with Python Selenium, and the following proxy settings and browser options were set as shown below.

prox = Proxy()
prox.proxyAutoconfigUrl = "http://wpad/wpad.dat"
ff_options = webdriver.FirefoxOptions()
ff_options.set_preference("network.proxy.no_proxies_on", "123.123.123.123") 

Currently, I automating the same page, and I am unaware of how to specify the above configurations in JS Testcafe.

I have absolutely no idea how to proceed. Please assist.

I made to following discoveries (Testcafe docs), below is the content of package.json

{
  "scripts": {
    "DEMO": "testcafe firefox pageObjModel/tests/*.js",
    "proxy": "http://wpad/wpad.dat",
    "proxyBypass": "123.123.123.123"
  },
  "dependencies": {
    "node-xlsx": "^0.21.0",
    "testcafe": "^1.18.1",
    "testcafe-blink-diff": "^0.4.11"
  }
}

This does not work. Now I just need help in knowing where exactly I must paste these lines in package.json

"proxy": "http://wpad/wpad.dat",
"proxyBypass": "123.123.123.123"
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You need to specify proxy settings as TestCafe arguments:

"scripts": {
    "DEMO": "testcafe firefox pageObjModel/tests/*.js --proxy http://wpad/wpad.dat --proxy-bypass 123.123.123.123"
  },
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda