Exemple #1
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();
        }