Exemple #1
0
        public EPACardsSection GetEPACardsTable()
        {
            var epaCardsValues = new DataGridComponent(menu.FindElement(EPACardsBlock))
                                 .FindElements(eWalletBalance).ToList()
                                 .Select(it => it.Text.Replace("$", "").Replace("€", "").Replace("₽", "").Replace(" ", ""));

            return(new EPACardsSection
            {
                USD = Decimal.Parse(epaCardsValues.ToList()[0]),
                //Check if EUR section exists
                EUR = Decimal.Parse(epaCardsValues.Count() > 1 ? epaCardsValues.ToList()[1] : "0"),
            });
        }
Exemple #2
0
        public EWalletSection GetEwalletTable()
        {
            var ewalletValues = new DataGridComponent(menu.FindElement(eWalletBlock))
                                .FindElements(eWalletBalance).ToList()
                                .Select(it => it.Text.Replace("$", "").Replace("€", "").Replace("₽", "").Replace(" ", ""));

            return(new EWalletSection
            {
                USD = Decimal.Parse(ewalletValues.ToList()[0]),
                EUR = Decimal.Parse(ewalletValues.ToList()[1]),
                RUB = Decimal.Parse(ewalletValues.ToList()[2])
            });
        }