public bool BuyAndVerifyFilledOrdersTab(string instrument, string side, double size) { var flag = false; driver.Navigate().GoToUrl("https://apexwebqa.azurewebsites.net/exchange"); driver.Manage().Window.Maximize(); driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(5); UserFunctionality objUserFunctionality = new UserFunctionality(output); objUserFunctionality.LogIn(); UserHomePage selectExchange = new UserHomePage(driver, output); selectExchange.SelectInstrumentFromExchange(instrument); GenericUtils gen = new GenericUtils(output); string buyAmountValue = gen.ConvertToDecimal(size); BuyOrderEntry boe = new BuyOrderEntry(driver, output); string buyMarketOrderTime = boe.PlaceMaketBuyOrder(0.07); string lastPrice = boe.GetLastPrice(); double doubleLastPrice = Convert.ToDouble(lastPrice); string totalAmountCalculated = gen.FilledOrdersTotalAmount(size, doubleLastPrice); driver.FindElement(selectFilledOrdersTab).Click(); string expectedRow = instrument + " || " + side + " || " + size + " || " + lastPrice + " || " + totalAmountCalculated + " || " + buyMarketOrderTime; output.WriteLine("expectedRow********* " + expectedRow); if (GetListOfFilledOrders().Contains(expectedRow)) { output.WriteLine("Matched Expected -> " + expectedRow + " Actual -> "); flag = true; } return(flag); }