public void task5() { MainPage home_page = new MainPage(chromeDriver); home_page.goToPage(); InvestorPage page = home_page.goToInvestorsPage(); var price = double.Parse(page.price(), System.Globalization.CultureInfo.InvariantCulture); if (price > 440.0) { Console.WriteLine("Success"); } else { Console.WriteLine("Failed"); } }
private InvestorPage GetInvestorPagePreview(InvestorPage InvestorPageActive, InvestorPagePreview preview, int lastIdInvestorPage) { var InvestorPagePreview = new InvestorPage { InvestorPageCustomValue = $"InvestorPage_{lastIdInvestorPage}", InvestorPageTitle = "Inversionistas", InvestorPageActive = true, InvestorPageCreatedDate = DateTime.Now, InvestorPageHeadText = preview.HeadTextInvestorPage ?? InvestorPageActive.InvestorPageHeadText, InvestorPageColorHeadText = preview.ColorHeadTextInvestorPage ?? InvestorPageActive.InvestorPageColorHeadText, InvestorPageColorHeadBg = preview.ColorHeadBgInvestorPage ?? InvestorPageActive.InvestorPageColorHeadBg, InvestorPageSubText = preview.SubTextInvestorPage ?? InvestorPageActive.InvestorPageSubText, ReportTypes = GetActiveReports(), InvestorPageColorSubText = preview.ColorSubTextInvestorPage ?? InvestorPageActive.InvestorPageColorSubText, }; return(InvestorPagePreview); }