开发者

Selenium Getxpathcount returns 0

Selenium.GetXpathCount("xpath=/html/body/form/div[2]/div[3]/div[3]/table") returns 0.

I used Firepat开发者_运维问答h to find /html/body/form/div[2]/div[3]/div[3]/table, and it showed me 20 matching nodes.

Am I syntatically correct in getting the xpath count above?


Remove xpath= from the start of your expression.

See the documentation here, which indicates that no such prefix is necessary:

  • http://www.seleniumwiki.com/tag/getxpathcount/
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜