public void FindElementsByIosUIAutomationTestCase() { IOSDriver <IWebElement> driver = new IOSDriver <IWebElement>(defaultUri, capabilities); List <object> results = new List <object>(); results.Add(new Dictionary <string, object> { { "ELEMENT", "4" } }); results.Add(new Dictionary <string, object> { { "ELEMENT", "6" } }); results.Add(new Dictionary <string, object> { { "ELEMENT", "8" } }); server.respondTo("POST", "/elements", results); ICollection <IWebElement> elements = driver.FindElementsByIosUIAutomation(".elements()"); Assert.AreEqual(elements.Count, 3); }
public override IEnumerable <IOSElement> FindAllElements(IOSDriver <IOSElement> searchContext) { return(searchContext.FindElementsByIosUIAutomation(Value)); }