示例#1
0
 /// <summary>
 /// <para>Check if this element exists within the <see cref="SessionConfiguration.Timeout"/></para>
 /// </summary>
 /// <param name="options">
 /// <para>Override the way Coypu is configured to find elements for this call only.</para>
 /// <para>E.g. A longer wait:</para>
 ///
 /// <code>new Options{Timeout = TimeSpan.FromSeconds(60)}</code></param>
 public override bool Exists(Options options = null)
 {
     if (_element != null)
     {
         return(_element.Exists(options));
     }
     return(Try(new ElementExistsQuery(_element, Merge(options))));
 }
示例#2
0
 public bool Has(ElementScope findElement)
 {
     return(findElement.Exists());
 }