I want to add custom http request headers to Selenium PhantomJS. Specifically this header Accept-Language: en-US
I was able to figure this much out by reading other posts, but how would I fill out the second parameter of setCapability
to set a custom header?
DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability(PhantomJSDriverService.PHANTOMJS_PAGE_CUSTOMHEADERS_PREFIX, "");
I've seen the other post on Stackoverflow but that one is related to Python and not Java.