Chrome Dev Tools – “Size” vs “Content”

“Size” is the number of bytes on the wire, and “content” is the actual size of the resource. A number of things can make them different, including: Being served from cache (small or 0 “size”) Response headers, including cookies (larger “size” than “content”) Redirects or authentication requests gzip compression (smaller “size” than “content”, usually) From … Read more

Background color not showing in print preview

The Chrome CSS property -webkit-print-color-adjust: exact; works appropriately. However, making sure you have the correct CSS for printing can often be tricky. Several things can be done to avoid the difficulties you are having. First, separate all your print CSS from your screen CSS. This is done via the @media print and @media screen. Often … Read more

WebDriverException: unknown error: DevToolsActivePort file doesn’t exist while trying to initiate Chrome Browser

Thumb rule A common cause for Chrome to crash during startup is running Chrome as root user (administrator) on Linux. While it is possible to work around this issue by passing –no-sandbox flag when creating your WebDriver session, such a configuration is unsupported and highly discouraged. You need to configure your environment to run Chrome … Read more

Chrome Dev Tools: How to trace network for a link that opens a new tab?

Check out chrome://net-internals/#events (or chrome://net-export in the latest version of Chrome) for a detailed overview of all network events happening in your browser. Other possible solution, depending on your specific problem, may be to enable ‘Preserve log’ on the ‘Network’ tab: and force all links to open in the same tab by executing the following … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)