public void FindByClassChainTest()
        {
            var sliderCellStaticTextElements1 = _driver
                                                .FindElements(
                new ByIosClassChain("**/XCUIElementTypeCell/XCUIElementTypeStaticText[`name == 'Sliders'`]"));

            Assert.AreEqual(sliderCellStaticTextElements1.Count, 1);
            var sliderCellStaticTextElements2 = _driver
                                                .FindElementsByIosClassChain("**/XCUIElementTypeCell");

            Assert.AreEqual(sliderCellStaticTextElements2.Count, 18);
        }
        public void FindByClassChainTest()
        {
            ReadOnlyCollection <AppiumWebElement> sliderCellStaticTextElements_1 = driver
                                                                                   .FindElements(
                new ByIosClassChain("**/XCUIElementTypeCell/XCUIElementTypeStaticText[`name == 'Sliders'`]"));

            Assert.AreEqual(sliderCellStaticTextElements_1.Count, 1);
            ReadOnlyCollection <AppiumWebElement> sliderCellStaticTextElements_2 = driver
                                                                                   .FindElementsByIosClassChain("**/XCUIElementTypeCell");

            Assert.AreEqual(sliderCellStaticTextElements_2.Count, 18);
        }
Пример #3
0
        public void FindByClassChainTest()
        {
            ReadOnlyCollection <AppiumWebElement> sliderCellStaticTextElements_1 = driver
                                                                                   .FindElements(new ByIosClassChain("**/XCUIElementTypeCell/XCUIElementTypeStaticText[`name == 'Sliders'`]"));

            Assert.AreEqual(sliderCellStaticTextElements_1.Count, 1);
            ReadOnlyCollection <AppiumWebElement> sliderCellStaticTextElements_2 = driver
                                                                                   .FindElementsByIosClassChain("**/XCUIElementTypeCell");

            Assert.AreEqual(sliderCellStaticTextElements_2.Count, 18);

            AppiumWebElement actionSheetsCell = driver.FindElement(new ByIosClassChain("**/XCUIElementTypeCell/XCUIElementTypeStaticText[`name == 'Action Sheets'`]"));

            actionSheetsCell.Tap(1, 250);
            driver.FindElementByIosClassChain("**/XCUIElementTypeNavigationBar/XCUIElementTypeButton").Click();
        }