Skip to content

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.

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")))))
NameTypeDescription
optionsObjectPair of row and column like {row:1, col:3}
attrValuePairsObjectPairs of attribute and value like {“id”:“name”,“class”:“class-name”}
labelstringThe Table Caption or any Table Header or Table ID.
argsrelativeSelectorProximity selectors
TypeDescription
TableCellWrapper-