You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there is a column header that includes a new line, Sentinel cannot find it.
Ex. New
Line
Sentinel finds New but not New Line.
/**
* Returns the WebElement for a column header.
*
* @param columnHeader String the column to return
* @return the header WebElement element for the column
*/
protected WebElement getColumnHeaderElement(String columnHeader) {
Optional header = getOrCreateHeaderElements()
.stream()
.filter(element -> element.getText().replaceAll("[\t\n\r]+"," ").strip().equals(columnHeader))
.findFirst();
if(header.isEmpty())
throw new NoSuchElementException("No column found with header " + columnHeader);
return header.get();
}
The text was updated successfully, but these errors were encountered:
If there is a column header that includes a new line, Sentinel cannot find it.
Ex. New
Line
Sentinel finds New but not New Line.
/**
* Returns the WebElement for a column header.
*
* @param columnHeader String the column to return
* @return the header WebElement element for the column
*/
protected WebElement getColumnHeaderElement(String columnHeader) {
Optional header = getOrCreateHeaderElements()
.stream()
.filter(element -> element.getText().replaceAll("[\t\n\r]+"," ").strip().equals(columnHeader))
.findFirst();
The text was updated successfully, but these errors were encountered: