Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

network.setCookie does not work #59

Open
kszkszksz opened this issue Feb 20, 2021 · 0 comments
Open

network.setCookie does not work #59

kszkszksz opened this issue Feb 20, 2021 · 0 comments

Comments

@kszkszksz
Copy link

kszkszksz commented Feb 20, 2021

network.setCookie does not work or usage is not intended like this:

ChromeService chromeService = new ChromeServiceImpl(9222);
ChromeTab tab = chromeService.getTabs().get(0);
ChromeDevToolsService devToolsService = chromeService.createDevToolsService(tab);
Network network = devToolsService.getNetwork();
network.enable();
Boolean result = network.setCookie("some", "test", null, "example.com", "/", true, true, null, -1.0, CookiePriority.MEDIUM);

result is true.

network.getAllCookies();

returns added cookie, however when inspecting requests in the browser from the network tab, cookie is not present. cookie is also not present in Application / Storage / Cookies under example.com domain. There are other cookies present at example.com domain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant