Esempio n. 1
0
        public void CheckStatement(int row, List <UITable> expectedTransactions)
        {
            //Удаляем из ожидаемой таблицы строку с Датой., т.к. проверяется ниже
            expectedTransactions.RemoveAll(it => it.Column1.Equals("Дата"));

            //Клик по номеру операции сверху.
            _context.Grid.FindElement(statementListLocator).FindElements(By.CssSelector("ul"))[row].Click();

            //Проверка ожидаемой/фактической таблиц
            TableFragment.CheckTablesWithOrder(_context.Grid, statementListLocator,
                                               ReplaceTable(expectedTransactions, _context.Rate, _context.Amount, _context.PurseTransactionId, _context.InvoiceId, _context.ExternalTransactionId, null, _context.Email ?? _context.PhoneNumber), row);
            CommonComponentSteps.MakeScreenshot();
        }
Esempio n. 2
0
 public void CheckTable <T>(List <T> expectedTable, int tableIndex = 0)
 {
     expectedTable = ReplaceTable(expectedTable, _context.Rate, _context.Amount, null, null, null, _context.Fee, _context.Email ?? _context.PhoneNumber);
     TableFragment.CheckTablesWithOrder(_context.Grid, multiformLocator, expectedTable, tableIndex);
 }