LoginSignup
56
43

More than 5 years have passed since last update.

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

Posted at

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

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

chrome_selectors.png

おしまい

56
43
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
56
43