How to Inspect Elements on Mac?
Tags: mac, testing, webdev, webscraping
Published: 2023-12-21 12:59:35


Inspecting elements on Mac plays a crucial role for developers and testers, as they identify errors and help debug the issue. It’s all about learning the correct method to use the feature to make the most out of it. A developer must know how to inspect the tool usage.

As per Statista, Apple’s Mac operating system has gained a significant market share over the years, occupying a fifth of the market. Another survey shows an increased shipment of Mac computers in the fourth quarter of 2022, reaching seven million units worldwide (around 1.5 thousand more than in the previous quarter).

![](https://cdn-images-1.medium.com/max/2194/0*ILdjuzfHdy8kcJNJ.png)

That is why it becomes imperative to test or debug your websites on Mac.

In this tutorial, I will guide you through how to inspect elements on Mac, not only by using Safari but also using Chrome and Firefox browsers. We will also learn shortcut keys to make the traditional navigation process easy. Further, we will discover some third-party tools for Mac, which can help developers and software testers debug websites and web pages more effectively.

By the end of this tutorial, you will be able to learn and understand why inspecting elements play a significant role in every software tester and developer’s life.

So, let’s get started!

## What is element inspection?

Inspecting elements is a process vital for every developer and software tester. This enables testers and developers to view and edit a webpage or a website. Giving a complete insight into the website’s source code, including HTML, CSS, and sometimes JavaScript, helps marketers and testers understand how the website is built and structured.

It can help testers mainly when automating their [test script](https://www.lambdatest.com/learning-hub/test-scripts?utm_source=devto&utm_medium=organic&utm_campaign=dec_07&utm_term=bw&utm_content=learning_hub) by getting an *ID*, *CSS Selector*, and navigating via [*XPath](https://www.lambdatest.com/blog/complete-guide-for-using-xpath-in-selenium-with-examples/?utm_source=devto&utm_medium=organic&utm_campaign=dec_07&utm_term=bw&utm_content=blog)* to identify the exact element so that it can be automated.
>  Need a quick conversion from Hex to Decimal? Try our easy-to-use [Hex to Decimal](https://www.lambdatest.com/free-online-tools/hex-to-decimal?utm_source=devto&utm_medium=organic&utm_campaign=dec_07&utm_term=bw&utm_content=free_online_tools) tool now!”

Using element inspection on popular browsers like Chrome and Firefox can be pretty simple, but inspecting elements on Mac can be quite tricky. However, with the inspect element on the Mac feature, developers gain a powerful tool that simplifies the process of debugging by adding or editing a new HTML and CSS element.

## How to enable element inspector on Mac Safari?

Inspecting elements on browsers like Chrome and Firefox, which are supported on the Windows platform, can be pretty straightforward. But to inspect elements on Mac, the navigation to perform an inspect element differs as it requires enabling the developer mode.

To enable the Developer mode on Mac, follow the steps below.

1.Launch the browser that Mac supports, which is Safari.

2.You need developer access to enable the inspect feature on Mac. To do so, Open the Safari browser, click on Safari from the menu, and then select Preferences **(Safari> Preferences…)**

![](https://cdn-images-1.medium.com/max/2238/0*tI0tZBQJGTNNFwmz.png)

3.Once you click on Preferences, a window will appear. Click on the Advanced tab from the header option, then check the “Show Develop menu in menu bar” option. This will enable the Developer mode.

![](https://cdn-images-1.medium.com/max/2364/0*g980ISdCBr9Pmfdf.png)

4.Visit any website that you want to inspect. (In this case, I have launched the LambdaTest website. You can launch any site of your choice).

5.On the website screen, right-click and select Inspect Element.

![](https://cdn-images-1.medium.com/max/3176/0*sX0I_iv_BWtT3QN5.png)

## How to inspect elements on Mac in popular browsers?

In the following section, we’ll explore the various methods you can use on a Mac to inspect elements in popular browsers like Chrome and Firefox.
>  Simplify your coding with our [Base64 Encode](https://www.lambdatest.com/free-online-tools/base64-encode?utm_source=devto&utm_medium=organic&utm_campaign=dec_07&utm_term=bw&utm_content=free_online_tools) tool. Encode your data effortlessly!

## Inspect elements on Mac using Chrome

Inspecting elements on Mac via Chrome can be pretty straightforward. As mentioned earlier, navigating through the inspection would be the same. Let’s discuss the three different ways to inspect elements on Mac using Chrome.

### Using the Inspect option

1.On Mac, open Chrome browser and visit a website where you want to inspect.

2.Right-click on the website page and select Inspect from the option.

![](https://cdn-images-1.medium.com/max/2210/0*xBkpMFT8XvnJ_DOP.png)

3.A developer panel will appear that displays the entire HTML Structure of the site. You can find the website’s HTML structure by clicking the Elements tab.

![](https://cdn-images-1.medium.com/max/2858/0*ttTUgcXSnSCwoXJv.png)

4.On the right side of the developer panel, you can see the CSS for each HTML element you click on.

![](https://cdn-images-1.medium.com/max/2858/0*g5kHwTsuxPKCRlId.png)

### Using Developer Tools

The other way to open the Developer panel is by using the [Developer Tools](https://www.lambdatest.com/developer-tools?utm_source=devto&utm_medium=organic&utm_campaign=dec_07&utm_term=bw&utm_content=webpage) on the Chrome browser. To do so, follow the specific steps.

1.Visit your desired website.

![](https://cdn-images-1.medium.com/max/2860/0*gepi4bmvie1QUZb1.png)

2.Click on the Three dots from the top menu.

![](https://cdn-images-1.medium.com/max/2850/0*FnJro8nkmtvbEon7.png)

3.Then, choose More Tools > Developer Tools.

![](https://cdn-images-1.medium.com/max/2868/0*VXtzmRWQbbpqG9xa.png)

4.A developer panel will appear that displays the entire HTML Structure of the site.
You can also find other tabs like Elements, Console, Source, Network, and more. Each of these tabs plays a particular role for developers, but the Elements tab is all you need to understand.

![](https://cdn-images-1.medium.com/max/2840/0*GQvBBaTbukTgl673.png)

### Using keyboard shortcuts

You can navigate to the inspect element without visiting the desired site by right-clicking on the website screen and clicking the Inspect option. You can use the shortcut key on Mac, **Option+Command+I**, to save time.
>  Decode your Base64 data in seconds! Click here for our efficient [Base64 Decode](https://www.lambdatest.com/free-online-tools/base64-decode?utm_source=devto&utm_medium=organic&utm_campaign=dec_07&utm_term=bw&utm_content=free_online_tools) tool.

## Inspect elements on Mac using Firefox

Inspecting elements on Mac via Firefox is quite similar to inspecting elements on Chrome. Let’s discuss the three different ways to inspect elements on a Mac using Firefox.

### Using the Inspect option

1.On Mac, open the Firefox browser and visit a website you want to inspect.

2.Right-click on the website page and select Inspect from the options.

![](https://cdn-images-1.medium.com/max/2838/0*ADNr_xeuxIrANXxl.png)

3.A developer panel will appear that displays the entire HTML Structure of the site. You can find the Website’s HTML structure by clicking the Inspector tab.

![](https://cdn-images-1.medium.com/max/2844/0*aqWsJv_5kAZM4LiL.png)

4.On the right side of the Developer panel, you can see the CSS for each HTML element you click on.

![](https://cdn-images-1.medium.com/max/2840/0*2cReQmDu8FX1SjQc.png)

### Using Web Developer Tools

The other way to open the Developer panel is by using the Developer mode on the Firefox browser. To do so, follow the specific steps.

1.Visit your desired website.

2.Click on the hamburger menu (the three horizontal lines at the top-right corner of the window), and select More tools.

![](https://cdn-images-1.medium.com/max/2372/0*or-W0dCubxfTG1WY.png)

3.Then another panel appears, and select Web Developer Tools.

![](https://cdn-images-1.medium.com/max/2366/0*m2GGxhaYvZK-d78P.png)

This will open the Developer panel, where you can find HTML presenting the website structure and CSS that provides styling for the website.

### Using keyboard shortcuts

You can navigate to the inspect element on any website without the traditional approach. To save time, you can use the shortcut key on Mac, **Option+Command+C**.

## How to inspect and modify an HTML element on a Mac?

Now that we have learned how to navigate and enable the Inspect option over the mentioned browsers, let’s see what operations we can perform after the Developer panel appears.

The operations performed on the Developer panel area will remain the same for all the browsers: Chrome, Safari, and Firefox.

In this section, we will learn basic operations like selecting a specific tag, editing an HTML element, and copying the HTML element using Safari.
>  Convert Binary to Decimal seamlessly. Use our [Binary to Decimal](https://www.lambdatest.com/free-online-tools/binary-to-decimal?utm_source=devto&utm_medium=organic&utm_campaign=dec_07&utm_term=bw&utm_content=free_online_tools) converter for quick results.

## Modifying an HTML element using Safari

1.The first thing is to open the desired website on Safari.

2.Enable the option to inspect elements in any given way.

3.In this case, I will use the traditional way: right-click on the webpage and click the Inspect Element option.

![](https://cdn-images-1.medium.com/max/2342/0*imsXMQUqY6SPOrQi.png)

4.Select the element you would want to inspect.

![](https://cdn-images-1.medium.com/max/2844/0*Ethr0jTWzahquK9G.png)

5.You can click on any UI element on your website that you want to inspect and see the HTML tag highlighted in the developer panel.

6.To edit the same, right-click the HTML element highlighted in the Developer panel and select Edit >HTML.

![](https://cdn-images-1.medium.com/max/2390/0*E9ytbKe4U68rBdw2.png)

7.You can edit the text in the highlighted HTML tag.

![](https://cdn-images-1.medium.com/max/2376/0*nS1vPUQRyGYFjhhI.png)

8.To apply your changes, all you have to do is hit Enter. Now you can see the added changes to the H2 tag appear on the screen.

![](https://cdn-images-1.medium.com/max/NaN/0*sFZLBUIiRWnF3m59.png)

9.As these operations are temporary, they will be back to normal if you refresh your site.

![](https://cdn-images-1.medium.com/max/2856/0*CkTSMPUXezgqh8Xh.png)

You can add any tags or text to see what fits right for your site and then implement the same by writing in your code.

## Copying HTML elements using Safari

Copying HTML can be helpful as we can visually see the changes in the UI of the website. This can make developers work to identify and replicate the same while designing and structuring the website.

In this section, we will see how you can use an inspection to help you select and copy an HTML tag and get a visual representation of the site.

1.Visit your desired website. In this example, I will refer to the site LambdaTest Playground.

![](https://cdn-images-1.medium.com/max/3200/0*DADn4lMFEiJmg90M.png)

2.Now that you know how to navigate to inspect elements, use any methods to inspect. Right-click on the webpage and select Inspect Element.

![](https://cdn-images-1.medium.com/max/2866/0*DmyfhHUF4ZRiykcf.png)

3.A Developer panel appears; hover over a button and select the HTML element of the button called **SHOW NOW**. Right-click on the selected element > choose **Copy** > select **HTML**. This will copy the entire button tag element.

![](https://cdn-images-1.medium.com/max/2858/0*CybBIypAENfBrdlK.png)

4.Now that you have copied the element, you can paste it anywhere within the site. To do so, all you need to do is click Ctrl+V.

![](https://cdn-images-1.medium.com/max/2848/0*UtyEUR1HQZ1scyG1.png)

5.The pasted element consists of the same styles. You can change the button styling or keep it the same as per the requirement. To change the style or appearance of the button, you need to use the right side panel for CSS to make it look different.

In the below example, we changed the button’s color to purple using the CSS section on the right-side panel. You need basic HTML, CSS, and sometimes JavaScript knowledge to make specific changes to your HTML element.

![](https://cdn-images-1.medium.com/max/2880/0*PARNAFA9MoLzSacY.png)

Hope you understood the copying of HTML elements by following the steps and performing the same.

## Different ways to inspect elements on Mac

Utilizing web browsers’ built-in tools to inspect elements is a fundamental skill. These tools are invaluable for exploring web page structures, making element identifications and modifications, and troubleshooting issues.
>  Need to convert Decimal to Binary? Our [Decimal to Binary](https://www.lambdatest.com/free-online-tools/decimal-to-binary?utm_source=devto&utm_medium=organic&utm_campaign=dec_07&utm_term=bw&utm_content=free_online_tools) tool makes it easy and fast.

## Inspecting elements using built-in tools

This section will explore some built-in tools available in well-known browsers for inspecting and interacting with web page elements.

* **Use Accessibility Inspector**

This Accessibility Inspector helps users analyze the structure and properties of elements within applications. It is designed for testing and debugging accessibility By providing some detailed insights into the aspects of third-party applications.

* **Use Developer Tools (Limited Use)**

This might use web technologies like HTML, CSS, JavaScript, and more for their user interface. Giving limited access to developer’s tools similar to what you would get by inspecting websites or web pages in a browser.

Various third-party external tools are specifically designed to help in element inspection for debugging purposes. Some tools are mentioned below.

* **Firebug**

This browser extension for Firefox offers a complete suite of web development tools, including element inspection and debugging.

* **Selenium**

While often used for web testing, [Selenium](https://www.lambdatest.com/selenium?utm_source=devto&utm_medium=organic&utm_campaign=dec_07&utm_term=bw&utm_content=webpage) can also inspect and interact with elements on web pages.

* **Fiddler**

This web debugging proxy tool enables you to capture and analyze network traffic, inspect HTTP/HTTPS requests, and troubleshoot web applications.

* **Charles Proxy**

Another web debugging proxy tool, Charles Proxy, provides detailed insights into network traffic and allows for the inspection of both requests and responses.

* **Browser DevTools Extensions**

Many browsers offer extensions in their web stores that enhance their built-in DevTools, providing more advanced element inspection and debugging capabilities.

These external tools can be handy for developers and testers when the existing browser tools may not fully meet their needs or in specialized scenarios. They provide additional features and capabilities for inspecting and debugging elements on web pages.

Efficiently inspecting and debugging elements on different browsers is a crucial challenge. While browsers have built-in tools, they may not always suffice for specialized or complex tasks. Developers and testers often seek more advanced solutions to streamline their testing processes.

When it comes to speeding up your application testing on various browsers and addressing intricate debugging challenges, you need the right tools. Explore this blog on [fast-tracking cross-browser testing and debugging with LambdaTest](https://www.lambdatest.com/blog/how-to-fast-track-cross-browser-testing-and-debugging-with-lambdatest/?utm_source=devto&utm_medium=organic&utm_campaign=dec_07&utm_term=bw&utm_content=blog).

## Inspecting elements on the cloud

When it comes to inspecting elements to get more detailed information about your sites without the help of developers or when you need insight to see which script is failing, you can leverage cloud testing platforms like LambdaTest.

Cloud testing platforms offer a number of advantages for inspecting elements on Mac. They provide access to a wider range of devices and browsers, are scalable and flexible, can be more cost-effective than traditional on-premises testing solutions, are easy to use, and support collaboration with third-party tools.

LambdaTest can be more straightforward and accessible for developers and software testers. LambdaTest is an AI-powered test orchestration and execution platform that lets you run manual and automated tests over 3000+ real browsers, devices, and OS combinations. All you need to do is follow these steps.

1.[Create an account](https://accounts.lambdatest.com/register) on LambdaTest.

![](https://cdn-images-1.medium.com/max/3200/0*AVotzxRGf8wk0OEg.png)

2.Visit Real Time from the left menu bar.

![](https://cdn-images-1.medium.com/max/3200/0*ffezGJNwa4aVpBlv.png)

3.Select Browser Testing

![](https://cdn-images-1.medium.com/max/3200/0*RMvOdAJ1DJfPTbsZ.png)

4.In the URL section, enter the URL you want to perform Inspect. Select which operating system you want to test on, select the browser, select the version, and click the START button.

![](https://cdn-images-1.medium.com/max/2768/0*kW0nCxunF20qejxM.png)

5.Give a few minutes for the site to launch.

![](https://cdn-images-1.medium.com/max/2570/0*jDcNGzl_5wHqXyuh.png)

6.You can see the website is launched, and you can just right-click on the website, click on Inspect, and the developer panel will appear. On the left side, you can have multiple options to help you with some actions.

![](https://cdn-images-1.medium.com/max/3200/0*fqpKjdYNEm3AIPrm.png)

The action buttons on the left side of the screen can help report bugs while testing or inspecting the element. You can capture the bugs and share them with the group. The video button can help you record your entire inspection and keep it for the record.

Get a complete walkthrough on using LambdaTest by watching the full tutorial on all products and features.
{% youtube 86LQsMtBs5k  %}
Subscribe to the [LambdaTest YouTube channel](https://www.youtube.com/c/LambdaTest?sub_confirmation=1) for more videos on [responsive testing online](https://www.lambdatest.com/responsive-test-online?utm_source=devto&utm_medium=organic&utm_campaign=dec_07&utm_term=bw&utm_content=webpage) and [real-time testing](https://www.lambdatest.com/learning-hub/real-time-testing?utm_source=devto&utm_medium=organic&utm_campaign=dec_07&utm_term=bw&utm_content=learning_hub) to enhance your testing experience!

## Inspecting elements using responsive testing tools

So far, we have learned how to inspect elements with LambdaTest. However, another quick method to test mobile responsiveness is to use a [responsive testing](https://www.lambdatest.com/learning-hub/responsive-testing?utm_source=devto&utm_medium=organic&utm_campaign=dec_07&utm_term=bw&utm_content=learning_hub) tool like [LT Browser](https://www.lambdatest.com/lt-browser?utm_source=devto&utm_medium=organic&utm_campaign=dec_07&utm_term=bw&utm_content=webpage).

LT Browser by LambdaTest provides a complete [mobile testing](https://www.lambdatest.com/learning-hub/mobile-testing) environment with over 50 built-in device viewports for mobiles, tablets, laptops, and more.

Developers can smoothly inspect elements across multiple devices and viewports. LT Browser makes it easy to catch responsiveness bugs and mobile-specific issues that basic inspect elements tools would miss.

If you wish to try LT Browser, click on the button below. It will download an .exe file, and once installed, you can run the .exe file and make the most out of it.

You can also watch this video to get started with LT Browser, which will help you understand its functionalities better.
{% youtube Vn1RX9GMXtw  %}
Let us try LT Browser by following the steps.

1.Download and install LT Browser. Once you open the .exe file, you will see the below screen.

![](https://cdn-images-1.medium.com/max/3200/0*p3ldyT8N4ZSgP49s.png)

2.From the left menu, select DESKTOP and choose 11-inch MacBook Air from the dropdown options.

3.Tap the debugger icon (<>) to open the developer panel.

![](https://cdn-images-1.medium.com/max/3200/0*vc6FdY9_S4cdcMF7.png)

![](https://cdn-images-1.medium.com/max/3200/0*hpIvBXPx5rDygfu7.png)

4.Now, you can perform all the HTML operations like changing the text, copying HTML elements, and more.

![](https://cdn-images-1.medium.com/max/3200/0*OxMzjZdAKGwpdCpW.png)

5.You can also see the performance report by clicking the Performance Report tab from the header.

![](https://cdn-images-1.medium.com/max/3200/0*AAAGZiQMBzI2Lsj-.png)

6.It will redirect you to the detailed Performance Report page, where you can check the website’s loading speed, desktop and mobile performance, and more.

![](https://cdn-images-1.medium.com/max/3126/0*HW7cNY5-gGhjjwqU.png)

![](https://cdn-images-1.medium.com/max/3158/0*FytboqAMyNB-iXgg.png)

By using these steps, you can ensure your website looks and works well on various devices and screen sizes by selecting the devices from the left menu of LT Browser.

Hope you learned how to navigate through and understand better how to use Mac for element inspection along with well-known browsers and learned how to perform the inspection using a cloud-based platform like LambdaTest.
>  Convert Decimal to Octal in a snap! Try our user-friendly [Decimal to Octal](https://www.lambdatest.com/free-online-tools/decimal-to-octal?utm_source=devto&utm_medium=organic&utm_campaign=dec_07&utm_term=bw&utm_content=free_online_tools) converter.

## Conclusion

In this tutorial, we have learned the concept of inspecting elements on Mac using browsers like Safari, Chrome, and Firefox. We know this is important and valuable to both developers and software testers, providing insights into website structure and aiding in debugging. Enabling developer mode in Safari was detailed, alongside keyboard shortcuts to quickly access the inspect elements on Mac.

Furthermore, I have covered the steps to inspect and modify HTML elements and how to edit, copy, and duplicate elements using Safari’s developer panel. We saw that these changes are temporary but can guide developers’ coding decisions.

We have also covered the benefits of cloud-based platforms like LambdaTest, with a walkthrough of performing inspect elements on Mac tools.

Now, you have mastered the Inspect element that empowers developers and testers to achieve more significant insights into websites and applications, help debug processes, and improve overall productivity.