Exemple #1
0
        /// <summary>
        /// verify operation included
        /// </summary>
        public void VerifyOperationIncluded()
        {
            OperationIncluded.Wait(3);
            IList <IWebElement> list;

            if (Driver.GetType() == typeof(DummyDriver))
            {
                DummyWebElement dummy1 = new DummyWebElement();
                dummy1.Text = Data.OperationToRemove;
                OperationIncluded.FakeOptionsList = new List <IWebElement> {
                    dummy1
                };
            }
            list = OperationIncluded.Options;
            bool isFound = false;

            foreach (var webElement in list)
            {
                Report.Write("OperationIncluded value: " + webElement.GetAttribute("value") + "; text: " + webElement.Text);
                if (webElement.Text.Equals(Data.OperationToRemove))
                {
                    isFound = true;
                }
            }
            Assert.IsTrue(isFound, "Verified the operation '" + Data.OperationToRemove + "' is not included.");
        }
Exemple #2
0
 /// <summary>
 /// remove operation
 /// </summary>
 public void RemoveOperation()
 {
     OperationIncluded.SelectByText(Data.OperationToRemove);
     RemoveArrow.Click();
     this.DriverCommands.WaitAndMeasurePageLoadTime();
     InitElements();
 }