LoginSignup
2
2

More than 5 years have passed since last update.

ChromeコンソールでXPathのテスト

Posted at

Chromeのコンソールやっぱ便利

ほしいなと思って調べてみるとあるもんですね

今回は、ある商品の入荷情報を取得する

取得対象はこちら

構造を見るとこうなので

$x('//div[@id="availability"]/span')

Chromeのコンソールでこのように入力してみる

やったぜ!対象が取得できました。

参考

Testing XPath in Google Chrome browser

XPath自体の参考

XPath の例

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