/// <summary> /// Adds one or more content regions. /// </summary> /// <param name="element">An element representing a content region.</param> /// <param name="elements">One or more elements, each representing a content region.</param> /// <returns>An updated clone of this settings object.</returns> public AppiumCheckSettings Content(IWebElement element, params IWebElement[] elements) { AppiumCheckSettings clone = Clone_(); clone.Content_(new SimpleRegionByElement(element)); foreach (IWebElement elem in elements) { clone.Content_(new SimpleRegionByElement(elem)); } return(clone); }
/// <summary> /// Adds one or more content regions. /// </summary> /// <param name="selector">A selector representing a content region.</param> /// <param name="selectors">One or more selectors representing content regions.</param> /// <returns>An updated clone of this settings object.</returns> public AppiumCheckSettings Content(By selector, params By[] selectors) { AppiumCheckSettings clone = Clone_(); clone.Content_(new SimpleRegionBySelector(selector)); foreach (By sel in selectors) { clone.Content_(new SimpleRegionBySelector(sel)); } return(clone); }
/// <summary> /// Adds one or more content regions. /// </summary> /// <param name="elements">An enumerbale of elements, each representing a content region.</param> /// <returns>An updated clone of this settings object.</returns> public AppiumCheckSettings Content(IEnumerable <IWebElement> elements) { AppiumCheckSettings clone = Clone_(); foreach (IWebElement elem in elements) { clone.Content_(new SimpleRegionByElement(elem)); } return(clone); }
/// <summary> /// Adds one or more content regions. /// </summary> /// <param name="selectors">An enumerbale of selectors representing content regions.</param> /// <returns>An updated clone of this settings object.</returns> public AppiumCheckSettings Content(IEnumerable <By> selectors) { AppiumCheckSettings clone = Clone_(); foreach (By sel in selectors) { clone.Content_(new SimpleRegionBySelector(sel)); } return(clone); }