Exemple #1
0
        public void LocatingElementInsideAnotherElementTest()
        {
            var mainElement = _driver.FindElementByIosNsPredicate("type == \"XCUIElementTypeApplication\" AND name == \"TestApp\"");

            var numberOne = mainElement.FindElementById("IntegerA");
            var numberTwo = mainElement.FindElementById("IntegerB");
            var compute   = mainElement.FindElementByName("ComputeSumButton");
            var answer    = mainElement.FindElementByName("Answer");

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

            Assert.AreEqual("11", answer.GetAttribute("value"));
        }
 public override IOSElement FindElement(IOSDriver <IOSElement> searchContext)
 {
     return(searchContext.FindElementByIosNsPredicate(Value));
 }