Constructor
new module:MyAccountPage(driver, args)
Parameters:
Name | Type | Description |
---|---|---|
driver |
WebDriver | Instance of WebDriver. |
args |
object | Configuration arguments. |
- Source:
Extends
- Page
Methods
clickMenu(menu) → {Promise}
Click a menu item.
Parameters:
Name | Type | Description |
---|---|---|
menu |
string | Text for the menu item. |
- Source:
Returns:
Promise that evaluates to true
if menu item is clicked successfully, false
otherwise.
- Type
- Promise
hasMenu(menu) → {Promise}
Check whether a menu item is present.
Parameters:
Name | Type | Description |
---|---|---|
menu |
string | Text for the menu item. |
- Source:
Returns:
Promise that evaluates to true
if menu item is present, false
otherwise.
- Type
- Promise
login(username, password) → {Promise}
Log in a user using the form.
Parameters:
Name | Type | Description |
---|---|---|
username |
string | The user's username. |
password |
string | The user's password. |
- Source:
Returns:
Promise that evaluates to true
if form is filled and submitted successfully, false
otherwise.
- Type
- Promise