Ejemplo n.º 1
0
        public void AddTwoNumbersTest()
        {
            IOSElement numberOne = _driver.FindElementById("IntegerA");
            var        numberTwo = _driver.FindElementById("IntegerB");
            var        compute   = _driver.FindElementByName("ComputeSumButton");
            var        answer    = _driver.FindElementByName("Answer");

            numberOne.Clear();
            numberOne.SetImmediateValue("5");
            numberTwo.Clear();
            numberTwo.SetImmediateValue("6");
            compute.Click();

            Assert.AreEqual("11", answer.GetAttribute("value"));
        }