What’s the difference between console.dir and console.log?

In Firefox, these function behave quite differently: log only prints out a toString representation, whereas dir prints out a navigable tree. In Chrome, log already prints out a tree — most of the time. However, Chrome’s log still stringifies certain classes of objects, even if they have properties. Perhaps the clearest example of a difference … Read more

Chrome desktop notification example [closed]

In modern browsers, there are two types of notifications: Desktop notifications – simple to trigger, work as long as the page is open, and may disappear automatically after a few seconds Service Worker notifications – a bit more complicated, but they can work in the background (even after the page is closed), are persistent, and … Read more

“CAUTION: provisional headers are shown” in Chrome debugger

The resource could be being blocked by an extension (AdBlock in my case). The message is there because the request to retrieve that resource was never made, so the headers being shown are not the real thing. As explained in the issue you referenced, the real headers are updated when the server responds, but there … Read more

Debugging “Element is not clickable at point” error

This is caused by following 3 types: 1.The element is not visible to click. Use Actions or JavascriptExecutor for making it to click. By Actions: WebElement element = driver.findElement(By(“element_path”)); Actions actions = new Actions(driver); actions.moveToElement(element).click().perform(); By JavascriptExecutor: JavascriptExecutor jse = (JavascriptExecutor)driver; jse.executeScript(“scroll(250, 0)”); // if the element is on top. jse.executeScript(“scroll(0, 250)”); // if the … Read more

How to search all loaded scripts in Chrome Developer Tools?

Open a new Search pane in Developer Tools by: pressing Ctrl+Shift+F (Cmd+Option+I on mac) clicking the overflow menu (⋮) in DevTools, clicking the overflow menu in the Console (⋮) and choosing the Search option You can search across all your scripts with support for regular expressions and case sensitivity. Click any match to load that … Read more