Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

184
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!