@@ -14,21 +14,21 @@ public class TableElementFinder {
14
14
addLocatorSuffix (locatorSuffixesMap , "css.default" , "" );
15
15
addLocatorSuffix (locatorSuffixesMap , "css.content" , "" );
16
16
addLocatorSuffix (locatorSuffixesMap , "css.header" , " th" );
17
- addLocatorSuffix (locatorSuffixesMap , "css.footer" , " tfoot td" );
17
+ addLocatorSuffix (locatorSuffixesMap , "css.footer" , " tfoot td" , " tfoot th" );
18
18
addLocatorSuffix (locatorSuffixesMap , "css.row" , " tr:nth-child(%s)" );
19
19
addLocatorSuffix (locatorSuffixesMap , "css.col" , " tr td:nth-child(%s)" , " tr th:nth-child(%s)" );
20
20
21
21
addLocatorSuffix (locatorSuffixesMap , "sizzle.default" , "" );
22
22
addLocatorSuffix (locatorSuffixesMap , "sizzle.content" , "" );
23
23
addLocatorSuffix (locatorSuffixesMap , "sizzle.header" , " th" );
24
- addLocatorSuffix (locatorSuffixesMap , "sizzle.footer" , " tfoot td" );
24
+ addLocatorSuffix (locatorSuffixesMap , "sizzle.footer" , " tfoot td" , " tfoot th" );
25
25
addLocatorSuffix (locatorSuffixesMap , "sizzle.row" , " tr:nth-child(%s)" );
26
26
addLocatorSuffix (locatorSuffixesMap , "sizzle.col" , " tr td:nth-child(%s)" , " tr th:nth-child(%s)" );
27
27
28
28
addLocatorSuffix (locatorSuffixesMap , "xpath.default" , "" );
29
29
addLocatorSuffix (locatorSuffixesMap , "xpath.content" , "//*" );
30
30
addLocatorSuffix (locatorSuffixesMap , "xpath.header" , "//th" );
31
- addLocatorSuffix (locatorSuffixesMap , "xpath.footer" , "//tfoot//td" );
31
+ addLocatorSuffix (locatorSuffixesMap , "xpath.footer" , "//tfoot//td" , "//tfoot//th" );
32
32
addLocatorSuffix (locatorSuffixesMap , "xpath.row" , "//tr[%s]//*" );
33
33
addLocatorSuffix (locatorSuffixesMap , "xpath.col" , "//tr//*[self::td or self::th][%s]" );
34
34
}
@@ -50,6 +50,7 @@ public static WebElement findByHeader(WebDriver webDriver, String tableLocator,
50
50
51
51
public static WebElement findByFooter (WebDriver webDriver , String tableLocator , String content ) {
52
52
List <String > locators = parseTableLocator (tableLocator , "footer" );
53
+ System .out .println (Arrays .toString (locators .toArray ()));
53
54
return searchInLocators (webDriver , locators , content );
54
55
}
55
56
0 commit comments