-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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]: BrowserFactory::LaunchEdgeInIEMode always creates temp user-data-dir so we cannot use Default profile #10968
Comments
@sohrabtowfighi, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
Hi, @sohrabtowfighi. You can see if the feature is passing in the Web Platform Tests. If it is something new, please create an Issue with the MSEdgeDriver team. Feel free to comment the issues that you raise back in this issue. Thank you. |
Hi @diemol |
They are now being kind enough to help us maintain the IEDriver. That is why. |
It makes sense that it defaults to a temp directory so that it behaves like other drivers. I agree that there should be a way to specify this. A PR to add that feature would be appreciated. |
Please say this here: |
Microsoft already knows what they are doing there. I was mostly responding to:
|
As described above, Microsoft agreed to maintain the IE driver. The issue I
linked is the specific problem you are mentioning. Please state in the Ms
Edge driver issue that I linked that you are looking for a fix for the IE
driver. Thanks.
…On Tue, Aug 23, 2022, 2:55 PM Titus Fortner, ***@***.***> wrote:
Microsoft already knows what they are doing there. I was mostly responding
to:
It does not make sense to me why we need to hard code the user-data-dir
—
Reply to this email directly, view it on GitHub
<#10968 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABWK5LXLQZ2HKDPE7IPW5UDV2VCDBANCNFSM57FZWDDQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
FYI, I figured out a workaround. This was posted here.
|
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. |
What happened?
I am trying to run IE in Edge using the default user profile as shown in the code below.
It never works.
I realized that the iedriver java code hardcodes that a temporary directory is needed.
This is related to pull request 10006
The relevant code is found in selenium/cpp/iedriver/BrowserFactory.cpp
See the function, void BrowserFactory::LaunchEdgeInIEMode
// create a temporary directory for IEDriver test
std::wstring temp_dir;
if (CreateUniqueTempDir(temp_dir)) {
LOG(TRACE) << L"Using temporary folder " << LOGWSTRING(temp_dir) << ".";
executable_and_url.append(L" --user-data-dir=" + temp_dir);
this->edge_user_data_dir_ = temp_dir;
}
It does not make sense to me why we need to hard code the user-data-dir. It is important that selenium be able to operate using a specified profile. The script below intentionally comments out the path to the msedge.exe file so that an error is raised. In the error output, it is clear that a temporary directory is being used as the user-data-dir
How can we reproduce the issue?
Relevant log output
Operating System
Windows 10
Selenium version
4.4.3
What are the browser(s) and version(s) where you see this issue?
MS Edge 104.0.1293.63 (Official build) (64-bit)
What are the browser driver(s) and version(s) where you see this issue?
IEDriver 4.3.0.0
Are you using Selenium Grid?
No response
The text was updated successfully, but these errors were encountered: