LoginSignup
0
0

More than 5 years have passed since last update.

Gebがxpathをサポート

Posted at

0.12.0でサポートされてました。

厳密には、WebDriverのByセレクターをサポートしたことにより実現されています。
メーリングリストで、リリースのハイライトと言及されてました。

サンプル

本家のドキュメントによれば、こんな感じで呼べるみたい。

$(By.xpath('//p[@class="xpath"]'))

WebDriverのByをサポートしているので、他のidなども書けるようになっています。

$(By.id("some-id"))
$(By.className("some-class"))

参考

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