55
42

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Chromeでxpathやcssセレクタの実験したいとき

55
Posted at

Chromeでは現在開いているドキュメントに対して、xpathやcssセレクターの実験が簡単にできます。
もう当然みなさんご存知と思いますが、私自身忘れかけていたのでメモとして残しておきます。

  • Ctrl + Shift + i (Option + Command + i) を押してデベロッパー ツール起動。
  • Consoleを選択。
  • xpathの実験は $x(xpath_to_element);
  • cssセレクターの実験は $$(css_selector);

chrome_selectors.png

おしまい

55
42
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
55
42

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?