module:WPAdminWCSettingsProductsGeneral

module:WPAdminWCSettingsProductsGeneral

The Products: General settings screen

Constructor

new module:WPAdminWCSettingsProductsGeneral(driver, args)

Parameters:
Name Type Description
driver WebDriver

Instance of WebDriver.

args object

Configuration arguments.

Source:

Extends

  • WPAdminWCSettings

Methods

checkEnableRatingsOnReviews() → {Promise}

Check the "Enable ratings on reviews" checkbox.

Source:
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.

Source:
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.

Source:
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.

Source:
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.

Source:
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.

Source:
Returns:

Promise that evaluates to true if weight unit selected successfully, false otherwise.

Type
Promise

uncheckEnableRatingsOnReviews() → {Promise}

Uncheck the "Enable ratings on reviews" checkbox.

Source:
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.

Source:
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.

Source:
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.

Source:
Returns:

Promise that evaluates to true if box is/gets unchecked successfully, false otherwise.

Type
Promise