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/
精彩评论