Skip to content

Commit 497f0c1

Browse files
committed
get style for a grid value-wrapper
1 parent 9967b90 commit 497f0c1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/org/labkey/test/components/ui/grids/GridRow.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,16 @@ public WebElement getCell(CharSequence columnIdentifier)
9595
return getCell(_grid.getColumnIndex(columnIdentifier));
9696
}
9797

98+
/**
99+
* gets the style attribute of the value-wrapper for the specified cell
100+
* @return
101+
*/
102+
public String getCellStyle(CharSequence columnIdentifier)
103+
{
104+
var cell = getCell(columnIdentifier);
105+
return Locator.tagWithClass("span", "ws-pre-wrap").findElement(cell).getAttribute("style");
106+
}
107+
98108
/**
99109
* Returns true if the row contains all of the specified column/value pairs
100110
* @param partialMap Map of key (column) value (text)

0 commit comments

Comments
 (0)