'how to enable cookies/javascript
I'm trying to create a scenario on chegg.com but it seems that it is programmed to detect automation tools
is there a way to enable javascript and cookies before and preconfig or at least a way to not trigger this issue?
Solution 1:[1]
var options = new ChromeOptions();
options.AddArguments("--enable-javascript");
options.AddUserProfilePreference("profile.cookie_controls_mode", 0);
driver = new ChromeDriver("C:\\Program Files (x86)\\Google\\Chrome\\Application", options);
driver.Navigate().GoToUrl(loginUrl);
Try the above for javascript and cookies enabled. The code is in c#. You may try the desired option in your own programming language.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Kumar Rishabh |