module:WPAdminWCSettingsGeneral

module:WPAdminWCSettingsGeneral

The General admin settings screen

Constructor

new module:WPAdminWCSettingsGeneral(driver, args)

Parameters:
Name Type Description
driver WebDriver

Instance of WebDriver.

args object

Configuration arguments.

Source:

Extends

  • WPAdminWCSettings

Methods

checkEnableTaxes() → {Promise}

Check the "Enable taxes" checkbox.

Source:
Returns:

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

Type
Promise

checkStoreNotice() → {Promise}

Check the "Store notice" checkbox.

Source:
Returns:

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

Type
Promise

removeChoiceInSellToSpecificCountries(choice) → {Promise}

Unset a country from the selling locations.

Parameters:
Name Type Description
choice string

Text of option to select.

Source:
Returns:

Promise that evaluates to true if specified country is/gets unselected, false otherwise.

Type
Promise

selectBaseLocation(keyword, exactOption) → {Promise}

Select the base location.

Parameters:
Name Type Description
keyword string

Text to enter in the search field.

exactOption string

Text of option to select.

Source:
Returns:

Promise that evaluates to true if base location selected successfully, false otherwise.

Type
Promise

selectCurrency(keyword, exactOption) → {Promise}

Select a shop currency.

Parameters:
Name Type Description
keyword string

Text to enter in the search field.

exactOption string

Text of option to select.

Source:
Returns:

Promise that evaluates to true if specified currency selected successfully, false otherwise.

Type
Promise

selectCurrencyPosition(position) → {Promise}

Select a shop currency position.

Parameters:
Name Type Description
position string

Text of position to select.

Source:
Returns:

Promise that evaluates to true if specified currency position selected successfully, false otherwise.

Type
Promise

selectSellingLocation(option) → {Promise}

Select the selling location preferences.

Parameters:
Name Type Description
option string

Text of option to select.

Source:
Returns:

Promise that evaluates to true if selling location preferences selected successfully, false otherwise.

Type
Promise

setDecimalSeparator(separator) → {Promise}

Set the decimal separator input.

Parameters:
Name Type Description
separator string

What to use for the separator.

Source:
Returns:

Promise that evaluates to true if separator set successfully, false otherwise.

Type
Promise

setNumberOfDecimals(num) → {Promise}

Set the number of decimals input.

Parameters:
Name Type Description
num number

Number of decimals.

Source:
Returns:

Promise that evaluates to true if number of decimals set successfully, false otherwise.

Type
Promise

setSellToSpecificCountries(keyword, exactOption) → {Promise}

Select a country to use for a selling location.

Parameters:
Name Type Description
keyword string

Text to enter in the search field.

exactOption string

Text of option to select.

Source:
Returns:

Promise that evaluates to true if specified country selected successfully, false otherwise.

Type
Promise

setThousandSeparator(separator) → {Promise}

Set the thousand separator input.

Parameters:
Name Type Description
separator string

What to use for the separator.

Source:
Returns:

Promise that evaluates to true if separator set successfully, false otherwise.

Type
Promise

uncheckEnableTaxes() → {Promise}

Uncheck the "Enable taxes" checkbox.

Source:
Returns:

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

Type
Promise

uncheckStoreNotice() → {Promise}

Uncheck the "Store notice" checkbox.

Source:
Returns:

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

Type
Promise