The Emulation panel helps you to:
- Simulate various device profiles, browsers, screen sizes and resolutions
- Test different geolocation settings and coordinates
The Persist Emulation settings button will save any changes you made from the default desktop emulation settings, even when you close and reopen the DevTools.
The Reset Emulation settings button will reset your emulation settings back to the default Desktop browser profile and Microsoft Edge user agent string with GPS turned off.
When any of these options are changed from the default, the Emulation tab will show an informational alert to indicate that some aspect of your browser's behavior is being emulated.
Pick from a preset list of Windows device profiles which automatically configure the other emulation options or specify your own Custom configuation. Switch back to Default to reset all the emulation tools.
A quick way to simulate your page running on a Windows Phone device is to change the Browser profile setting to Windows Phone.
User agent string
Modifying your user agent string to mimic another browser is a good first step in debugging errors that are only happening in Microsoft Edge.
The problem with browser detection is that it's often used to scale back or change the features in a webpage based on what the developer writing the script thinks your browser can do, rather than detecting what your browser can actually do using feature detection. This can cause unexpected behavior, because code targeted at Windows Internet Explorer 8 can run very differently in Microsoft Edge; or a feature your browser is perfectly capable of supporting might be disabled because of an assumption made by the developer.
If changing your user agent string clears up the problem, browser detection is likely culprit.
Display emulation lets you preview your site on different screen sizes and resolutions: from conventional desktop monitors to smaller mobile screens or newer high-resolution displays.
Emulations are adapted to try and match the physical dimensions of the screens being emulated. Emulated pixels might appear compressed or expanded, and emulation is not recommended if you need to test pixel-perfect positioning of HTML elements. Emulation is, however, good for testing responsive designs and identifying larger element positioning issues.
Choose from Landscape or Portrait mode.
Choose from a preset list of popular device resolutions, or specify your own Custom config. Resolutions of up to 80 inches and 3820 x 2160 are supported.
If your site uses the Geolocation API to provide location-based services, you can easily test different GPS coordinates and sensor states from the convenience of your desktop. These settings will override any actual GPS coordinates and the sensor state on machines that support geolocation.
As with any usage of personal data on the web, your users will first need to grant your site permission to use their location. You can test how your site behaves with and without location permissions from the Microsoft Edge Settings panel:
... > Settings > View advanced settings > Website permissions > Manage
|Reset Emulation settings||
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.