public void ThenSelectingEachCardDisplaysAssetsDetail(Table table) { TableRows expected = table.Rows; int position = 1; assetsTab.ScrollToAssetsSummarySection(); //Verify that all cards selection results in details displaying bellow foreach (TableRow expTile in expected) { if (position == 1) { //First card should be selected by default assetsTab.IsSummaryTileSelectedByPosition(1).Should().BeTrue("Selected styles applied to selected tile"); } else { //For other cards select and then verify assetsTab.SelectSummaryTileByPosition(position); assetsTab.IsSummaryTileSelectedByPosition(position).Should().BeTrue("Selected styles applied to selected tile"); } this.verifyAssetTileDetails(expTile); position++; } //Verify going back to 1st card shows details correctly TableRow expFirst = expected[0]; //reload page to reset carousel positions assetsTab.Reload(); assetsTab.ScrollToAssetsSummarySection(); assetsTab.SelectSummaryTileByPosition(1); assetsTab.IsSummaryTileSelectedByPosition(1).Should().BeTrue("Selecting first tile again works correctly"); this.verifyAssetTileDetails(expFirst); }