Taiko
Documentation

Home / API Reference

tableCell

This selector lets you identify a table cell on a web page with row and column and row values as options and locating table using proximity selectors, or table labels.

Examples

tableCell({row:1, col:1}, "Table Caption")
tableCell({id:'myColumn'}).text()
tableCell({row:1,col:3}).text()
highlight(tableCell({row:2, col:3}, "Table Caption"))
highlight(text("Table Cell 2",above(tableCell({row:2, col:2}, "Table Caption"))))
highlight(text("Table Cell 1",near(tableCell({row:1, col:1}, "Table Caption"))))
click(link(above(tableCell({row:4,col:1},"Table Caption"))))
highlight(link(above(tableCell({row:4,col:1},above("Code")))))

Parameters


options

Pair of row and column like {row:1, col:3}


options.selectHiddenElements boolean

Option to include hidden elements.

Default value
false

attrValuePairs

Pairs of attribute and value like {"id":"name","class":"class-name"}


label

The Table Caption or any Table Header or Table ID.


args relativeSelector

Proximity selectors


Returns

ElementWrapper