So I been digging the web (google, stackoverflow, github) trying to find a simple way to add custom headers to my tests. So far nothing pop out. Maybe some thing for java or firefox, but nothing clear.
I'm using:
- NodeJS: v6.11.3
- Nightwatch: 0.9.16
- ChromeDriver: 2.32
- Selenium 3.5.3
So what i would like is that headers would propagate in all tests including 302 Redirects
before: {
this.setHeaders = {
"X-CUSTOM-HEADER-A": "Data-A",
"X-CUSTOM-HEADER-B": "Data-B",
}
}
Is there something like this avaliable? Any chromedriver args maybe?