コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LazyElement" /> class
 /// </summary>
 /// <param name="parent">The parent lazy element</param>
 /// <param name="locator">The 'by' selector for the element</param>
 /// <param name="userFriendlyName">A user friendly name, for logging purposes</param>
 public LazyElement(LazyElement parent, By locator, [CallerMemberName] string userFriendlyName = null) : base(parent, locator, userFriendlyName)
 {
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LazyElement" /> class
 /// </summary>
 /// <param name="parent">The parent lazy element</param>
 /// <param name="locator">The 'by' selector for the element</param>
 /// <param name="cachedElement">The cached web element</param>
 /// <param name="index">The index of the element - Used if the by finds multiple elements</param>
 /// <param name="userFriendlyName">A user friendly name, for logging purposes</param>
 private LazyElement(LazyElement parent, By locator, IWebElement cachedElement, int index, [CallerMemberName] string userFriendlyName = null) : base(parent, locator, cachedElement, index, userFriendlyName)
 {
 }
コード例 #3
0
ファイル: LazyElement.cs プロジェクト: cakriwut/MAQS
 /// <summary>
 /// Initializes a new instance of the <see cref="LazyElement" /> class
 /// </summary>
 /// <param name="parent">The parent lazy element</param>
 /// <param name="locator">The 'by' selector for the element</param>
 /// <param name="userFriendlyName">A user friendly name, for logging purposes</param>
 /// <example>
 /// <code source = "../SeleniumUnitTesting/LazyElementUnitTests.cs" region="LazyElementCreateWithParent" lang="C#" />
 /// </example>
 public LazyElement(LazyElement parent, By locator, [CallerMemberName] string userFriendlyName = null) : this(parent.TestObject, locator, userFriendlyName)
 {
     this.parent = parent;
 }