private void verifyStyles(TabSetInspector tabSet, int selectedTabIndex) {
ElementInspector firstTab = tabSet.tabs().get(0);
ElementInspector secondTab = tabSet.tabs().get(1);
TableInspector tabSetAsTable = new TableInspector(tabSet);
TableCellInspector emptySpaceCell = tabSetAsTable.body().row(0).cell(4);
emptySpaceCell.assertStyle("background: beige");
// backBorderStyle="2px solid SpringGreen"
if (selectedTabIndex == 0) {
secondTab.assertStyle("border-left: 2px solid SpringGreen; border-right: 2px solid SpringGreen;");
} else if (selectedTabIndex == 1) {
firstTab.assertStyle("border-left: 2px solid SpringGreen; border-right: 2px solid SpringGreen");
}
// frontBorderStyle="3px dashed OliveDrab"
if (selectedTabIndex == 0) {
secondTab.assertStyle("border-bottom: 3px dashed OliveDrab");
firstTab.assertStyle("border-right: 3px dashed OliveDrab");
} else if (selectedTabIndex == 1) {
firstTab.assertStyle("border-bottom: 3px dashed OliveDrab");
secondTab.assertStyle("border-right: 3px dashed OliveDrab");
}
emptySpaceCell.assertStyle("border-bottom: 3px dashed OliveDrab");
tabSetAsTable.body().row(0).cell(0).assertStyle("border-bottom: 3px dashed OliveDrab");
// tabStyle="background: azure; border-top: 1px dotted darkgreen; width: 70px;"
if (selectedTabIndex == 0) {