示例#1
0
 /// <summary>
 /// This method creates a <see cref="OpenQA.Selenium.By"/> strategy
 /// that searches for elements using Android UI automation framework.
 /// <see cref="http://developer.android.com/intl/ru/tools/testing-support-library/index.html#uia-apis"/>
 /// </summary>
 /// <param name="selector">The selector to use in finding the element.</param>
 /// <returns></returns>
 public static By AndroidUIAutomator(IUiAutomatorStatementBuilder selector) =>
 new ByAndroidUIAutomator(selector);
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ByAndroidUIAutomator"/> class.
 /// </summary>
 /// <param name="selector">The selector to use in finding the element.</param>
 public ByAndroidUIAutomator(IUiAutomatorStatementBuilder selector) : base(selector.Build(),
                                                                           MobileSelector.AndroidUIAutomator)
 {
 }
 public AppiumWebElement FindElementByAndroidUIAutomator(IUiAutomatorStatementBuilder selector) =>
 FindElement(MobileSelector.AndroidUIAutomator, selector.Build());
 public IReadOnlyCollection <AppiumWebElement> FindElementsByAndroidUIAutomator(IUiAutomatorStatementBuilder selector) =>
 FindElements(MobileSelector.AndroidUIAutomator, selector.Build());
 public IReadOnlyCollection <W> FindElementsByAndroidUIAutomator(IUiAutomatorStatementBuilder selector) =>
 ConvertToExtendedWebElementCollection <W>(FindElements(MobileSelector.AndroidUIAutomator, selector.Build()));