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

[🐛 Bug]: Unable to get cookies on IE Compatibility mode with IEDriverServer 4.0.0 #10687

Closed
souban-git opened this issue May 24, 2022 · 4 comments
Labels
I-defect I-issue-template Applied to issues not following the template, or missing information.

Comments

@souban-git
Copy link

What happened?

Edge Version 101
IE Driver version 4.0.0 32 bit

Hi, My website IE Compatibility mode enabled. When I am launching my website using IE mode with IEdriver 4.0.0
i am unable to read cookies from the website. Able to fetch cookies when working on Edge and IE browsers separately

Configuration :
{"se:ieOptions":{"ie.edgechromium":true,"ie.edgepath":"C:/Program Files )x86)/Microsoft/Edge/Application/msedge.exe"}}
Method used to get cookies:
Set bCookie = .manage().getCookies();
also tried
(String) .executeScript("return document.cookie");

for both above methods getting below error

getCookies:{}Could not retrieve cookies.
The most common cause of this error is
mismatch in the bitness between the driver and browser. In particular, be sure you are not
attempting to use a 64-bit IEDriverServer-exe against IE 10 or 11,
even on 64-bit Windows

How can we reproduce the issue?

Edge Version 101
IE Driver version 4.0.0 32 bit

Hi, My website IE Compatibility mode enabled. When I am launching my website using IE mode with IEdriver 4.0.0
i am unable to read cookies from the website. Able to fetch cookies when working on Edge and IE browsers separately

Configuration : 
{"se:ieOptions":{"ie.edgechromium":true,"ie.edgepath":"C:/Program Files )x86)/Microsoft/Edge/Application/msedge.exe"}}
Method used to get cookies:
Set<Cookie> bCookie = <IEdriver>.manage().getCookies();
also tried
(String) <iedriver>.executeScript("return document.cookie");

for both above methods getting below error

getCookies:{}Could not retrieve cookies.
The most common cause of this error is
mismatch in the bitness between the driver and browser. In particular, be sure you are not
attempting to use a 64-bit IEDriverServer-exe against IE 10 or 11,
even on 64-bit Windows

Relevant log output

Edge Version 101
IE Driver version 4.0.0 32 bit

Hi, My website IE Compatibility mode enabled. When I am launching my website using IE mode with IEdriver 4.0.0
i am unable to read cookies from the website. Able to fetch cookies when working on Edge and IE browsers separately

Configuration : 
{"se:ieOptions":{"ie.edgechromium":true,"ie.edgepath":"C:/Program Files )x86)/Microsoft/Edge/Application/msedge.exe"}}
Method used to get cookies:
Set<Cookie> bCookie = <IEdriver>.manage().getCookies();
also tried
(String) <iedriver>.executeScript("return document.cookie");

for both above methods getting below error

getCookies:{}Could not retrieve cookies.
The most common cause of this error is
mismatch in the bitness between the driver and browser. In particular, be sure you are not
attempting to use a 64-bit IEDriverServer-exe against IE 10 or 11,
even on 64-bit Windows

Operating System

Windows 10

Selenium version

Java 1.8

What are the browser(s) and version(s) where you see this issue?

Edge 101

What are the browser driver(s) and version(s) where you see this issue?

IEDriver 4.0.0

Are you using Selenium Grid?

no

@github-actions
Copy link

@souban-git, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

@diemol diemol added I-issue-template Applied to issues not following the template, or missing information. and removed needs-triaging labels May 24, 2022
@github-actions
Copy link

Hi, @souban-git.
Please follow the issue template, we need more information to reproduce the issue.

Either a complete code snippet and URL/HTML (if more than one file is needed, provide a GitHub repo and instructions to run the code), the specific versions used, or a more detailed description to help us understand the issue.

Note: If you cannot share your code and URL/HTML, any complete code snippet and URL/HTML that reproduces the issue is good enough.

Reply to this issue when all information is provided, thank you.

@diemol
Copy link
Member

diemol commented Jun 2, 2022

Closing as no more info was provided.

@diemol diemol closed this as completed Jun 2, 2022
@github-actions
Copy link

github-actions bot commented Jul 3, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
I-defect I-issue-template Applied to issues not following the template, or missing information.
Projects
None yet
Development

No branches or pull requests

2 participants