module:WPAdminWCSettingsTax

module:WPAdminWCSettingsTax

The Tax: Tax Options settings screen.

Constructor

new module:WPAdminWCSettingsTax(driver, args)

Parameters:
Name Type Description
driver WebDriver

Instance of WebDriver.

args object

Configuration arguments.

Source:

Extends

  • WPAdminWCSettings

Methods

_getPriceEnteredWithTaxSelector(option) → {object}

Get a selector for a "Prices entered with tax" radio option. (Internal use only)

Parameters:
Name Type Description
option string

Text for option to select.

Source:
Returns:

Selector.

Type
object

addAdditionalTaxClass(value) → {Promise}

Add an additional tax class to the additional tax class field.

Parameters:
Name Type Description
value string

Tax class to add

Source:
Returns:

Promise that evaluates to true if input found and class added successfully, false otherwise.

Type
Promise

checkRounding() → {Promise}

Check the "Rounding" checkbox.

Source:
Returns:

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

Type
Promise

removeAdditionalTaxClass(value) → {Promise}

Remove an additional tax class from the additional tax class field.

Parameters:
Name Type Description
value string

Tax class to remove

Source:
Returns:

Promise that evaluates to true if input found and class removed successfully, false otherwise.

Type
Promise

removeAdditionalTaxClasses() → {Promise}

Remove all of the additional tax classes from the additional tax class field.

Source:
Returns:

Promise that evaluates to true if input found and set successfully, false otherwise.

Type
Promise

selectCalculateTaxBasedOn(option) → {Promise}

Select the weight unit.

Parameters:
Name Type Description
option string

Text for option to select.

Source:
Returns:

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

Type
Promise

selectDisplayPricesDuringCartAndCheckout(option) → {Promise}

Select the "Display prices during cart and checkout" option.

Parameters:
Name Type Description
option string

Text for option to select.

Source:
Returns:

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

Type
Promise

selectDisplayPricesInTheShop(option) → {Promise}

Select the "Display prices in the shop" option.

Parameters:
Name Type Description
option string

Text for option to select.

Source:
Returns:

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

Type
Promise

selectDisplayTaxTotals(option) → {Promise}

Select the "Display tax totals" option.

Parameters:
Name Type Description
option string

Text for option to select.

Source:
Returns:

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

Type
Promise

selectPricesEnteredWithNoTax() → {Promise}

Set the "Prices entered with tax" option to "No".

Source:
Returns:

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

Type
Promise

selectPricesEnteredWithTax() → {Promise}

Set the "Prices entered with tax" option to "Yes".

Source:
Returns:

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

Type
Promise

selectShippingTaxClass(option) → {Promise}

Select the shipping tax class.

Parameters:
Name Type Description
option string

Text for option to select.

Source:
Returns:

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

Type
Promise

setPriceDisplaySuffix(value) → {Promise}

Set the price display suffix field.

Parameters:
Name Type Description
value string

Price display suffix.

Source:
Returns:

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

Type
Promise

uncheckRounding() → {Promise}

Uncheck the "Rounding" checkbox.

Source:
Returns:

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

Type
Promise