Safari for Mac
- When Chrome for Mac was released in the beta phases I was stoked Until I saw the UI, now this is debatable but I would much rather have the looks of Safari then Chrome any day. All I really wanted was a good inspector and some nice things from the web developer toolbar.
- Open Safari and click Settings (highlighted below) Preferences Advanced. Then select Show Develop menu in menu bar. To show the menu bar, click Settings Show Menu Bar.
Safari is included with your Mac operating system.
1.) Bringing up AND closing (i.e. Toggling) Safari’s Web Inspector. 2.) Toggle the Inspect Element feature on and off. Both of these functions can be achieved in Firefox’ ditto Firebug extension, with keyboard shortcuts applied, but I still haven’t found a way to do it in Safari’s Web Inspector Any help would be greatly appreciated!
Updating Safari
To keep Safari up to date for the version of macOS you're using, install the latest macOS updates.
The most recent version of macOS includes the most recent version of Safari. For some earlier versions of macOS, Safari might also be available separately from the Updates tab of the App Store.
Reinstalling Safari
If you deleted Safari and don't have a Time Machine backup or other backup, reinstall macOS to put Safari back in your Applications folder. Reinstalling macOS doesn't remove data from your computer.
Before reinstalling, you might want to use Spotlight to search for Safari on your Mac. If you find it, but it's no longer in your Dock, just drag it to the Dock to add it back.
Safari for Windows
Apple no longer offers Safari updates for Windows. Safari 5.1.7 for Windows was the last version made for Windows, and it is now outdated.
Your job doesn't end with ensuring your site runs great across Chrome and Android. Even though Device Mode can simulate a range of other devices like iPhones, we encourage you to check out other browsers solutions for emulation.
TL;DR
- When you don’t have a particular device, or want to do a spot check on something, the best option is to emulate the device right inside your browser.
- Device emulators and simulators let you mimic your development site on a range of devices from your workstation.
- Cloud-based emulators let you automate unit tests for your site across different platforms.
Browser emulators
Browser emulators are great for testing a site's responsiveness, but they don’temulate differences in API, CSS support, and certain behaviors that you'd seeon a mobile browser. Test your site on browsers running on real devices to becertain everything behaves as expected.
Firefox' Responsive Design View
Firefox has a responsive design viewthat encourages you to stop thinking in terms of specific devices and insteadexplore how your design changes at common screen sizes or your own size bydragging the edges.
Edge's F12 Emulation
To emulate Windows Phones, use Microsoft Edge's built-in emulation.
Since Edge does not ship with legacy compatibility, use IE 11's Emulation to simulate how your page would look in older versions of Internet Explorer.
Device emulators and simulators
Device simulators and emulators simulate not just the browser environment but the entire device. They're useful to test things that require OS integration, for example form input with virtual keyboards.
Android Emulator
At the moment, there is no way to install Chrome on an Android emulator. However, you can use the Android Browser, the Chromium Content Shell and Firefox for Android which we'll cover later in this guide. Chromium Content Shell uses the same Chrome rendering engine, but comes without any of the browser specific features.
The Android emulator comes with the Android SDK which you need to download fromhere. Then follow the instructions to setup a virtual device and start the emulator.
Once your emulator is booted, click on the Browser icon and you'll be able to test your site on the old Stock Browser for Android.
Chromium Content Shell on Android
To install the Chromium Content Shell for Android, leave your emulator runningand run the following commands at a command prompt:
Now you can test your site with the Chromium Content Shell.
Firebug For Mac Safari Settings
Firefox on Android
Similar to Chromium's Content Shell, you can get an APK to install Firefox onto the emulator.
Download the right .apk file from https://ftp.mozilla.org/pub/mozilla.org/mobile/releases/latest/.
From here, you can install the file onto an open emulator or connected Android device with the following command:
iOS Simulator
The iOS simulator for Mac OS X comes with Xcode, which you can install from theApp Store.
When you're done, learn how to work with the simulator through Apple's documentation.
Note: To avoid having to open Xcode every time you want to use the iOS Simulator, open it, then right click the iOS Simulator icon in your dock and selectKeep in Dock
. Now just click this icon whenever you need it.Modern.IE
Modern.IE Virtual Machines let you access different versions of IE on your computer via VirtualBox (or VMWare). Choose a virtual machine on the download page here.
Cloud-based emulators and simulators
If you can’t use the emulators and don't have access to real devices, then cloud-based emulators are the next best thing. A big advantage of cloud-based emulators over real devices and local emulators is that you can automate unit tests for your site across different platforms.
Firebug For Mac Safari Browser
- BrowserStack (commercial) is the easiest to use for manual testing. You select an operating system, select your browser version and device type, select a URL to browse, and it spins up a hosted virtual machine that you can interact with. You can also fire up multiple emulators in the same screen, letting you test how your app looks and feels across multiple devices at the same time.
- SauceLabs (commercial) allows you to run unit tests inside of an emulator, which can be really useful for scripting a flow through your site and watch the video recording of this afterwards on various devices. You can also do manual testing with your site.
- Device Anywhere (commercial) doesn'tuse emulators but real devices which you can control remotely. This is very useful in the event where you need to reproduce a problem on a specific device and can't see the bug on any of the options in the previous guides.