LoginSignup
0
0

More than 5 years have passed since last update.

webstormでXPathの検索方法

Last updated at Posted at 2018-02-08

XPath検索画面の表示

WebStorm(2017.1)で説明します。

【Find by XPath】

  • ツールバーからの場合:[Edit]→[Find]→[Find by XPath]

  • ショートカットの場合:[option+command+X]押下後→[F]
    スクリーンショット 2017-10-08 22.33.14.png

スクリーンショット 2017-10-08 22.21.43.png

基本的な検索方法

プロジェクト内から検索したい項目 XPathコマンド
.hoge /descendant::*[contains(concat(" ",@class," ")," hoge ")]
.hoge > li /descendant::*[contains(concat(" ",@class," ")," hoge ")]/li
.fuga .piyo /descendant::[contains(concat(" ",@class," ")," fuga ")]//[contains(concat(" ",@class," ")," piyo ")]

参考記事

0
0
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
0
0