public void AdvanceBuyLimitOrderIOC(string orderType, string instrument, string orderSize, string limitPrice) { objAdvancedOrderPage = new AdvancedOrderPage(output); objUserFunctionality = new UserFunctionality(output); objAdvancedOrderPage.PlaceBuyOrderWithImmediateOrCancelType(orderType, instrument, orderSize, limitPrice); UserSetFunctions.EnterText(driver.FindElement(advanceOrderSizeAmount), orderSize); UserSetFunctions.EnterText(driver.FindElement(advanceOrderLimitAmount), limitPrice); UserSetFunctions.Click(driver.FindElement(placeBuyOrderButton)); }
public void AdvanceSellLimitOrderIOC(string orderType, string instrument, string orderSize, string limitPrice, string selectTimeInForceOrderEntryValue) { UserSetFunctions.Click(driver.FindElement(sellButton)); objAdvancedOrderPage = new AdvancedOrderPage(output); objUserFunctionality = new UserFunctionality(output); objAdvancedOrderPage.PlaceBuyOrderWithImmediateOrCancelType(orderType, instrument, orderSize, limitPrice); UserSetFunctions.EnterText(driver.FindElement(advanceOrderSizeAmount), orderSize); UserSetFunctions.EnterText(driver.FindElement(advanceOrderLimitAmount), limitPrice); UserSetFunctions.Click(driver.FindElement(placeSellOrderButton)); objUserFunctionality.SelectTimeInForceOrderEntry(selectTimeInForceOrderEntryValue); Thread.Sleep(2000); UserSetFunctions.Click(driver.FindElement(openOrderTabButton)); }
public void AdvanceBuyLimitOrderIOC(string orderType, string instrument, string orderSize, string limitPrice) { string buyMarketOrderTime; UserSetFunctions.Click(BuyButton()); objAdvancedOrderPage = new AdvancedOrderPage(output); objUserFunctionality = new UserFunctions(output); objAdvancedOrderPage.SelectInstrumentsAndOrderType(instrument, orderType); objAdvancedOrderPage.PlaceBuyOrderWithImmediateOrCancelType(orderSize, limitPrice); buyMarketOrderTime = GenericUtils.GetCurrentTime(); VerifyAdvanceBuyOrderTab(instrument, "Buy", 2, limitPrice, buyMarketOrderTime); Thread.Sleep(2000); }
public void AdvanceSellLimitOrderIOC(string orderType, string instrument, string orderSize, string limitPrice) { string sellMarketOrderTime; UserSetFunctions.Click(SellButton()); objAdvancedOrderPage = new AdvancedOrderPage(output); objUserFunctionality = new UserFunctions(output); objAdvancedOrderPage.SelectInstrumentsAndOrderType(instrument, orderType); objAdvancedOrderPage.PlaceSellOrderWithImmediateOrCancelType(orderSize, limitPrice); sellMarketOrderTime = GenericUtils.GetCurrentTime(); Thread.Sleep(2000); UserCommonFunctions.CloseAdvancedOrderSection(driver, logger); Thread.Sleep(2000); UserSetFunctions.Click(OpenOrderTabButton()); VerifyAdvanceBuyOrderTab(instrument, "Sell", 2, limitPrice, sellMarketOrderTime); }