コード例 #1
0
 /// <summary>
 /// Returns the currently focused element on the Page (<see cref="Element.Within"/>) if exists, otherwise returns the Browser.
 /// </summary>
 /// <param name="stepsDef"></param>
 /// <returns></returns>
 public static Element Page(this IStepDefinitions stepsDef)
 {
     return stepsDef.Context().Page();
 }
コード例 #2
0
 /// <summary>
 /// context Browser instance
 /// </summary>
 /// <param name="stepsDef"></param>
 /// <returns></returns>
 public static Browser Browser(this IStepDefinitions stepsDef)
 {
     return stepsDef.Context().Browser();
 }