Cookie sub-tab show all cookies of request. If I know this tool sooner, maybe I could discover this Post call myself and didn’t disturb @friendlytester in the exercise 3
I have been testing on 5 main browsers which include Chrome, Firefox, IE, Safari and Microsoft Edge. I found that each browser has its own document about developer tools:
I usually use Chrome DevTools, it has a lot of helpful features, below is some findings:
The Preserve log checkbox: check this to save requests across page loads
Capture screenshots: Capture screenshots during page load to analyze what users see as they wait for the page to load
Filter requests with many criteria
View a log of requests: there are lots of info here, I often refer Status Code, Time and click on a request to view detail info such as Header, Preview Response. Besides, it is able to custom columns to add more columns, I added Method column and have just tried some more
It has many features. Read more here
Other tab’s features of DevTools are listed here
Ex: I checked on the Preverse log to keep all requests, then I filter to find the request which I want to test, select on it then you will see all the information
This lets you edit the endpoint, headers, and body of the request and resend it. This comes really handy when exploring API requests right from the browser
Here is what I know and regularly use when it comes to browser developer tools
Option + Shift + I (Mac), Ctr + Shift + I (Win) - to open developer tools.
I prefer to see browser developer tools docked at the bottom of the page (customizable)
Cmd + Shift + M (or click on the icon with mobile device) - toggle device toolbar. I often use this feature when I want to see how a page will look on mobile devices.
Elements / Sources tab - shows DOM tree of elements. You can also access it by right-clicking on the web page > Inspect. This tool can be helpful when you need selector / XPath of the element.
Console tab - (1) shows logged messages and errors. Oftentimes, error messages can tell you that there is something not working although, you do not see any issues on the frontend. Also, I often attach screenshots with error messages to my bug reports. This can immediately tell what the problem is related to; (2) allows running JavaScript. Running JavaScript from console can be a useful testing tool. I shared my example in Day 24
Network tab - shows network activity.
I use it to view the response codes, methods, paths, timing.
If you click on the request in “Name” column you can see request url, method, status code, response and request headers.
Payload, response are very helpful for API testing, because you can view what data is sent and received, copy/paste it in another tools like Postman.
You can filter your requests using the filter.
Throttling dropdown can be used to simulate slow network and see how application behaves in this case.
Sources tab - I do not use it often but I know it can be used to create JS snippets, view files, set breakpoints to pause the code, step through the code
Long-press on “Reload” opens menu with 3 options: normal, hard reload and empty cache with hard reload
Clear storage and site data for a single page in Google Chrome: Developer Tools > Application > Storage > Clear site: local and session storage, indexedDB, web SQL, cookies. cache storage
Network tab allows searching network headers and responses (click “search” icon in the top left corner)