May 20, 2020 Note: Microsoft recently launched the new version of Edge in Jan 2020 that was built using the Chromium engine. As a result, Microsoft distinguishes between both versions with unique naming conventions – Edge, and Edge legacy. Microsoft introduced a new browser called “Microsoft Edge” with their Windows 10 release. Now Microsoft edge is the default browser for the Windows 10. After that lots of people got a question whether they can do web scraping using this new browser, like they did with the Internet explorer.
Latest versionReleased:
An updated EdgeDriver implementation for Selenium 3 with newly-added support for Microsoft Edge (Chromium).
Project description
Selenium Tools for Microsoft Edge extends Selenium 3 with a unified driver to help you write automated tests for both the Microsoft Edge (EdgeHTML) and new Microsoft Edge (Chromium) browsers.
The libraries included in this project are fully compatible with Selenium's built-in Edge libraries, and run Microsoft Edge (EdgeHTML) by default so you can use our project as a seamless drop-in replacement. In addition to being compatible with your existing Selenium tests, Selenium Tools for Microsoft Edge gives you the ability to drive the new Microsoft Edge (Chromium) browser and unlock all of the latest functionality!
The classes in this package are based on the existing Edge
and Chrome
driver classes included in the Selenium project.
Before you Begin
The Selenium Tools for Microsoft Edge is a solution for developers who prefer to remain on Selenium 3 which is the current stable release and developers who have existing browser tests and want to add coverage for the new Microsoft Edge (Chromium) browser without changing the Selenium version.
Selenium Microsoft Edge Headless
The very same Edge
driver classes provided in this package are included in Selenium 4 and are already available today in the latest Selenium 4 Alpha release. If you are able to upgrade to Selenium 4 Alpha, there is no need to use this package as Selenium should already have everything you need built in!
Getting Started
Downloading Driver Executables
You will need the correct WebDriver executable for the version of Microsoft Edge you want to drive. The executables are not included with this package. WebDriver executables for all supported versions of Microsoft Edge are available for download here. For more information, and instructions on downloading the correct driver for your browser, see the Microsoft Edge WebDriver documentation.
Installation
Selenium Tools for Microsoft Edge depends on the official Selenium 3 package to run. You will need to ensure that both Selenium 3 and the Tools and included in your project.
Use pip to install the msedge-selenium-tools and selenium packages:
Example Code
See the Microsoft Edge WebDriver documentation for lots more information on using Microsoft Edge (Chromium) with WebDriver.
Contributing
We are glad you are interested in automating the latest Microsoft Edge browser and improving the automation experience for the rest of the community!
Before you begin, please read & follow our Contributor's Guide. Consider also contributing your feature or bug fix directly to Selenium so that it will be included in future Selenium releases.
Code of Conduct
This project has adopted the Microsoft Open Source Code of Conduct.For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
Release historyRelease notifications | RSS feed
Microsoft Edge Selenium Webdriver Python
3.141.3
3.141.2
3.141.1
3.141.0 yanked
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size msedge_selenium_tools-3.141.3-py3-none-any.whl (15.2 kB) | File type Wheel | Python version py3 | Upload date | Hashes |
Filename, size msedge-selenium-tools-3.141.3.tar.gz (8.5 kB) | File type Source | Python version None | Upload date | Hashes |
90.0.818.36-pre
Hashes for msedge_selenium_tools-3.141.3-py3-none-any.whl
Algorithm | Hash digest |
---|---|
SHA256 | 63e2966d48094239e4d40bdaf9fd1c723698541c90362cf8d810d934cd7334f9 |
MD5 | e7b27fee7572122c8661b254876727a7 |
BLAKE2-256 | 0141d8cd7c3cd1c71c059d79d8768454fe94a6fd068cfe455717dec481b366f7 |
Hashes for msedge-selenium-tools-3.141.3.tar.gz
Algorithm | Hash digest |
---|---|
SHA256 | b6d4adce03770211de9a927edce41672baa6b2f582a969d564e5176631cc8d2b |
MD5 | 0e0c846620cc94fc0f6df37b6f0b7fdf |
BLAKE2-256 | 35f8afe06bb27c69ae950978d2dc6dc5cd2637cac68cacca649fbd2837f71400 |
Follow these steps to create a simple Selenium flow.
Create a Selenium IDE flow
Open the MicrosoftEdge (version 80 or later) or Google Chrome, and then navigate to Power Automate.
Sign in with your work or school account if needed.
Select My flows > Desktop flows > New.
Click Additional desktop flow options.
Select Selenium IDE, and then select Next.
Enter a name for your Selenium IDE flow into the Flow name field.
Enter the URL for the Website you want to automate into the Base URL field, and then select Launch recorder.
The Selenium IDE launches.
Tip
Tip: You can record actions across multiple HTTP or HTTPS websites withinthe same tab.
In Selenium IDE, select the red REC button in the top right side of the screen to launch the recorder.
The URL you chose in the previous step opens.
Perform the actions that you want to record on the website.
Tip
At the bottom right, you can see the recording status.
When you are finished recording, select on the red Stop button in the top right corner of the Selenium IDE.
Select the Run current test button from the top left side of the screen to see the Selenium IDE flow you just created run.
Tip
You can set the wait time between steps to slow the local playback for testing. This setting is for testing purposes only and has no impact when your Selenium IDE flow is deployed.
Select the Save project button in the top right of the Selenium IDE. This closes, and then uploads the project.
Now that you've created a Selenium IDE flow, use it in your other flows.
Limitations and known issues for Selenium IDE flows
Warning
Passwords in Selenium IDE are stored in plain text.
Temporary user profile for playback
Selenium IDE recordings are done with the current user's profile, but playback is done using a temporary user profile. This means that websites that need authentication may not ask for credentials during a recording session, but the authentication steps will be needed during playback.
To address this, the user needs to manually edit the script to insert the commands needed for the login process.
Other limitations
Recording desktop applications during a Web recording session. If you need to automate both Web and Desktop applications, you can create a separate desktop flows for each type and then combine them in a cloud flow.
Multi-Factor Authentication (MFA) is not supported, use a tenant that doesn't require MFA.
These Selenium IDE commands are not supported: Run, AnswerOnNextPrompt, ChooseCancelOnNextConfirmation, ChooseCancelOnNextPrompt, ChooseOkOnNextConfirmation, Debugger, ClickAt, DoubleClickAt, Echo, MouseOut, MouseUpAt, and MouseDownAt.
Selenium IDE actions or steps cannot exceed one minute to run. Use Power Automate Desktop instead.
Right click is not supported.
Additional Selenium IDE flow input is generated when you use Foreach commands. To work around this issue, input any value into the extra fields. It doesn't impact the playback.
If the .side file contains multiple test projects, only the first one that was created runs.
Tip
Note that the Selenium IDE orders the tests by name, not by creation date, so the first test created may not be the first one in the list.
Playback directly in the Selenium IDE might not behave as intended. However, playback at runtime behaves correctly.
Next steps
Learn how to run desktop flows.
Learn how to use input and output parameters with Selenium IDE.
Note
Can you tell us about your documentation language preferences? Take a short survey.
The survey will take about seven minutes. No personal data is collected (privacy statement).