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.
- we can use console.group to group logs.
- $ $$ and $x selector, (return 1st object, colelction and by xpath), an example running on google.com homepage.
- Using inspect method to highlight the dom element get selected
No comments:
Post a Comment