Constructor
new module:WPAdminWCSettingsProductsGeneral(driver, args)
Parameters:
Name | Type | Description |
---|---|---|
driver |
WebDriver | Instance of WebDriver. |
args |
object | Configuration arguments. |
Extends
- WPAdminWCSettings
Methods
checkEnableRatingsOnReviews() → {Promise}
Check the "Enable ratings on reviews" checkbox.
Returns:
Promise that evaluates to true
if box is/gets checked successfully, false
otherwise.
- Type
- Promise
checkOnlyAllowReviewsFromVerifiedOwners() → {Promise}
Check the "Only allow reviews from 'verified owners'" checkbox.
Returns:
Promise that evaluates to true
if box is/gets checked successfully, false
otherwise.
- Type
- Promise
checkRatingsAreRequiredToLeaveReview() → {Promise}
Check the "Ratings are required to leave a review" checkbox.
Returns:
Promise that evaluates to true
if box is/gets checked successfully, false
otherwise.
- Type
- Promise
checkShowVerifiedOwnerLabel() → {Promise}
Check the "Show 'verified owner' label for customer reviews" checkbox.
Returns:
Promise that evaluates to true
if box is/gets checked successfully, false
otherwise.
- Type
- Promise
selectDimensionsUnit(option) → {Promise}
Select the dimensions unit.
Parameters:
Name | Type | Description |
---|---|---|
option |
string | Dimensions unit text. |
Returns:
Promise that evaluates to true
if dimensions unit selected successfully, false
otherwise.
- Type
- Promise
selectWeightUnit(option) → {Promise}
Select the weight unit.
Parameters:
Name | Type | Description |
---|---|---|
option |
string | Weight unit text. |
Returns:
Promise that evaluates to true
if weight unit selected successfully, false
otherwise.
- Type
- Promise
uncheckEnableRatingsOnReviews() → {Promise}
Uncheck the "Enable ratings on reviews" checkbox.
Returns:
Promise that evaluates to true
if box is/gets unchecked successfully, false
otherwise.
- Type
- Promise
uncheckOnlyAllowReviewsFromVerifiedOwners() → {Promise}
Uncheck the "Only allow reviews from 'verified owners'" checkbox.
Returns:
Promise that evaluates to true
if box is/gets unchecked successfully, false
otherwise.
- Type
- Promise
uncheckRatingsAreRequiredToLeaveReview() → {Promise}
Uncheck the "Ratings are required to leave a review" checkbox.
Returns:
Promise that evaluates to true
if box is/gets unchecked successfully, false
otherwise.
- Type
- Promise
uncheckShowVerifiedOwnerLabel() → {Promise}
Uncheck the "Show 'verified owner' label for customer reviews" checkbox.
Returns:
Promise that evaluates to true
if box is/gets unchecked successfully, false
otherwise.
- Type
- Promise