Limit elements by number of subelements

50 views
Skip to first unread message

Wayne Gunn

unread,
Jun 20, 2022, 12:31:43 PM6/20/22
to Selenium Users
How do I construct an xpath that returns only tr elements that contain a specified number of td elements?

Roger Cook

unread,
Jun 20, 2022, 1:22:05 PM6/20/22
to Selenium Users
Which language bindings are you using?

SiKing

unread,
Jun 20, 2022, 3:20:40 PM6/20/22
to Selenium Users
//tr[count(td)=X]

Wayne Gunn

unread,
Jun 22, 2022, 9:16:41 PM6/22/22
to Selenium Users
I use VBA with EdgeDriver
Reply all
Reply to author
Forward
0 new messages