Class GoogleLoginPage
Defines a page object for the Google login page.
Inheritance
Namespace: Legerity.Web.Authentication.Pages
Assembly: Legerity.Web.Authentication.dll
Syntax
public class GoogleLoginPage : BasePage
Constructors
| Improve this Doc View SourceGoogleLoginPage()
Initializes a new instance of the GoogleLoginPage class using the
Declaration
public GoogleLoginPage()
GoogleLoginPage(RemoteWebDriver)
Initializes a new instance of the GoogleLoginPage class using a
Declaration
public GoogleLoginPage(RemoteWebDriver app)
Parameters
| Type | Name | Description |
|---|---|---|
| RemoteWebDriver | app | The instance of the started application driver that will be used to drive the page interaction. |
GoogleLoginPage(RemoteWebDriver, Nullable<TimeSpan>)
Initializes a new instance of the GoogleLoginPage class using a
Declaration
public GoogleLoginPage(RemoteWebDriver app, TimeSpan? traitTimeout)
Parameters
| Type | Name | Description |
|---|---|---|
| RemoteWebDriver | app | The instance of the started application driver that will be used to drive the page interaction. |
| System.Nullable<TimeSpan> | traitTimeout | The amount of time the driver should wait when searching for the Trait if it is not immediately present. |
GoogleLoginPage(Nullable<TimeSpan>)
Initializes a new instance of the GoogleLoginPage class using the
Declaration
public GoogleLoginPage(TimeSpan? traitTimeout)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Nullable<TimeSpan> | traitTimeout | The amount of time the driver should wait when searching for the Trait if it is not immediately present. |
Fields
| Improve this Doc View SourceTitle
The expected title of the Google login page.
Declaration
public const string Title = null
Field Value
| Type | Description |
|---|---|
| System.String |
Properties
| Improve this Doc View SourceEmailInput
Gets the input element for providing an email address.
Declaration
public virtual TextInput EmailInput { get; }
Property Value
| Type | Description |
|---|---|
| TextInput |
NextButton
Gets the button element for continuing the sign-in flow through the Google login UI.
Declaration
public virtual Button NextButton { get; }
Property Value
| Type | Description |
|---|---|
| Button |
PasswordInput
Gets the input element for providing a password.
Declaration
public virtual TextInput PasswordInput { get; }
Property Value
| Type | Description |
|---|---|
| TextInput |
SignInButton
Gets the button element for completing the sign-in flow through the Google login UI.
Declaration
public virtual Button SignInButton { get; }
Property Value
| Type | Description |
|---|---|
| Button |
Trait
Gets a given trait of the page to verify that the page is in view.
Declaration
protected override By Trait { get; }
Property Value
| Type | Description |
|---|---|
| By |
Methods
| Improve this Doc View SourceLogin(String, String)
Login a Google user by email and password.
Declaration
public GoogleLoginPage Login(string email, string password)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | The email address to authenticate with. |
|
| System.String | password | The password associated with the email address to authenticate with. |
Returns
| Type | Description |
|---|---|
| GoogleLoginPage | The GoogleLoginPage instance. |