Selenium私房菜系列2 -- XPath的使用【ZZ】.docVIP

  • 4
  • 0
  • 约2.12千字
  • 约 4页
  • 2018-06-25 发布于河南
  • 举报

Selenium私房菜系列2 -- XPath的使用【ZZ】.doc

Selenium私房菜系列2 -- XPath的使用【ZZ】

Selenium私房菜系列2 -- XPath的使用【ZZ】 在编写Selenium案例时,少不免是要用到XPath的,现在外面关于XPath使用的参考资料很多,下面我直接转一篇关于XPath使用的文 档。如果对XPath不熟悉请参考下文,你不需要去百度/Google搜索关于XPath的资料,因为下面的内容已经足够你写测试时使用,如果你已熟悉 XPath,本章大可忽略跳过。   xpath的语法   XPath 是XML的查询语言,和SQL的角色很类似。以下面XML为例,介绍XPath 的语法。  ?xml version=1.0 encoding=ISO-8859-1? catalog    cd country=USA       titleEmpire Burlesque/title       artistBob Dylan/artist       price10.90/price    /cd    cd country=UK      titleHide your heart/title      artistBonnie Tyler/artist      price9.90/price    /cd        cd country=USA      titleGreatest Hits/title      artistDolly Parton/artist

文档评论(0)

1亿VIP精品文档

相关文档