I have modified the file UserAgent.java and I have added "webkitNavigatorTmp.put("languages", "'en-US'");" to the webkitNavigator String. But when I go to whoer.net I still do not see the languages under the navigator section. I also tried adding a few other things, but they do not appear when I go to whoer.net. Why is that?
public static void main(String[] args) throws InterruptedException {
UserAgent userAgent = new UserAgent(UserAgent.Family.WEBKIT, "Apple Computer, Inc.", "iPhone", "",
"5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.0 Mobile/14G60 Safari/602.1",
"Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.0 Mobile/14G60 Safari/602.1");
JBrowserDriver driver = new JBrowserDriver(Settings.builder().timezone(Timezone.AMERICA_NEWYORK).headless(false)
.blockAds(true).userAgent(userAgent).build());
driver.get("http://whoer.net");
Thread.sleep(15000000);
driver.quit();
}
I have modified the file UserAgent.java and I have added "webkitNavigatorTmp.put("languages", "'en-US'");" to the webkitNavigator String. But when I go to whoer.net I still do not see the languages under the navigator section. I also tried adding a few other things, but they do not appear when I go to whoer.net. Why is that?
And this is how I run jBrowserDriver