Sunday, September 21, 2014

Chrome Developer Tools Tips - 1

I've been using the Chrome developer tools always, just realized several tips.

  • Console.dir will list all the attributes or methods of an object.

image

  • we can use console.group to group logs.

image

  • $ $$ and $x selector, (return 1st object, colelction and by xpath), an example running on google.com homepage.

image

  • Using inspect method to highlight the dom element get selected

image

No comments:

 
Locations of visitors to this page