-
Notifications
You must be signed in to change notification settings - Fork 7
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
Ability to pass user data directory argument to IEDriverServer for use automating Edge legacy mode #29
Comments
Thank you for filing this issue. It appears this was broken when IEDriver 4.0.0+ started creating a temporary user data directory for every session. The older version didn't do this. I've added this to our internal backlog for consideration. |
I have also come across this issue. This is related to pull request link. The problem code is found in selenium/cpp/iedriver/BrowserFactory.cpp
I initially posted on the Selenium github, and I was directed here link |
I was able to get around this issue with some edits to the browser factory code. I have provided some of the surrounding code so that you can ctrl-f to the relevant section.
|
I also make sure that when adding arguments in python, I put the variables in double quotes.
|
For almost 2 years this absurd problem persists for which it is not possible to indicate which profile to use while using Edge via WebDriver. You are causing problems for tons of Test Automation developers, while Chrome and Firefox support it without problems! Here are other threads talking about it, but StackOverflow is full of angry people too! Now the state of bug is changed in "This conversation has been locked and limited to collaborators." on SeleniumHQ/selenium#10968 PS) Here is the Java code that does not work, however, after trying all the possible variants or various indications (with or without -, with or without double quotes). EdgeOptions edgeOptions = new EdgeOptions (); |
@lukesoftware this discussion is specific to IEDriverServer, which is used to test Edge in IE Mode. From your sample code, it looks like you are testing Edge in native (Chromium) mode. I've created a separate issue #58. Feel free to continue the discussion there. |
Hi, any news on this one? Currently starting Edge in IE mode with the IEDriverServer webdriver doesn't take into account my custom passed path for the user data dir in order to use specific profiles. Any ETA for a fix in the webdriver code? |
@cmin764 there's no ETA for a fix in IE Driver. IE Driver maintenance is not a priority for the Edge Developer Tools team due to the fact this is a legacy product and we receive a relatively low volume of feedback about IE Driver usage. The good news is that IE Driver is open source and this specific issue can be fixed entirely in IE Driver. In other words, no MS-internal code should need to be updated which would require our team's expertise. Here's the PR which introduced temporary user data directories to IE Driver as a reference: SeleniumHQ/selenium#10006 |
Currently, as far as I can see there is no way to add options to the Edge browser instance that is launched when using IEDriverServer to automate Edge Legacy mode. This means that you are unable to pass a 'user-data-dir' parameter to the Edge browser window (as you can when using msedgedriver), which means my organisations' profile sign in window appears. This causes any automation to fail when automating Edge legacy mode.
Please note that this profile sign in window only appears when using IEDriverServer version 4.0.0 and above, which is mentioned as a pre-requisite by Selenium for Edge legacy automation. If I use a version less than 4.0.0, such as 3.150.1.2, then this window does not appear.
The text was updated successfully, but these errors were encountered: