|
exports.MerchantAppConf=
|
|
class MerchantAppConf {
|
|
|
|
constructor(page) {
|
|
this.page = page;
|
|
this.appConfLink="//span[normalize-space()='AppConfig']";
|
|
this.currency="//select[@id='oba_appconfig_select_currency']";
|
|
this.minimumCartPrize="//label[@id='oba_appconfig_minimum_cart_price_label']//input[@id='oba_appconfig_minimum_cart_price']";
|
|
this.deliveryCharge="//label[@id='oba_appconfig_delivery_charge_label']//input[@id='oba_appconfig_minimum_cart_price']";
|
|
this.callToAction="//input[@id='oba_appconfig_call_to_action']";
|
|
this.areaSelection="//select[@id='oba_appconfig_city_selection_list']";
|
|
this.typingText="//input[@id='oba_appconfig_area_selection']";
|
|
this.selectedText="//select[@id='oba_appconfig_area_selection_list']";
|
|
}
|
|
|
|
async openAppConf(){
|
|
await this.page.locator(this.appConfLink).click();
|
|
}
|
|
|
|
async selectCurrency(currency){
|
|
await this.page.locator(this.currency).selectOption({label:currency});
|
|
}
|
|
async callToAction(Number){
|
|
|
|
await this.page.locator(this.callToAction).fill(Number);
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|