VOOZH about

URL: https://qiita.com/him0net/items/af2bcb4fd2abbfba8231

⇱ ChromeコンソールでXPathのテスト #HTML - Qiita


👁 Image
2

Go to list of users who liked

2

Share on X(Twitter)

Share on Facebook

Add to Hatena Bookmark

More than 5 years have passed since last update.

@him0netin👁 Image
freee

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

2
Posted at

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

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

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

👁 Image

取得対象はこちら

👁 Image

構造を見るとこうなので

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

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

👁 Image

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

参考

Testing XPath in Google Chrome browser

XPath自体の参考

XPath の例

2

Go to list of users who liked

2
0

Go to list of comments

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

Go to list of users who liked

2