cgiffard / Behaviour-Assertion-Sheets

CSS-like declarative DSL for web integration testing.
http://bas.cgiffard.com/
138 stars 8 forks source link

nth-child indices count text nodes #9

Closed cgiffard closed 11 years ago

cgiffard commented 11 years ago

The nth-child indices in node-path output count text nodes, meaning that selecting the node path is incorrect and selecting the node in the browser is impossible (often requires tweaking before it can be used.)

Filtering out text nodes in indices will solve this problem.