/// <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(); }
/// <summary> /// context Browser instance /// </summary> /// <param name="stepsDef"></param> /// <returns></returns> public static Browser Browser(this IStepDefinitions stepsDef) { return stepsDef.Context().Browser(); }