package cz.moneta.test.dsl.monetaportal.components;

import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Until;
import cz.moneta.test.harness.support.web.Wait;

public interface QuestionQuickCall {

    // QUESTION_QUICK_CALL
    String QUESTION_QUICK_CALL_DIV = "//div[contains(@class, 'page-section question-call')]";
    String QUESTION_QUICK_CALL_W2C_BUTTON = QUESTION_QUICK_CALL_DIV + "//a[contains(@class, 'btn btn-secondary w2c-modal')]";
    String QUESTION_QUICK_CALL_W2B_BUTTON = QUESTION_QUICK_CALL_DIV + "//a[contains(@class, 'btn btn-secondary w2b-modal')]";
    String W2B_SEARCH_BRANCH_INPUT = "//div[@id='W2bModal']//input[@id = 'searchBranchInput']";


    @Click(value = QUESTION_QUICK_CALL_W2C_BUTTON, andWait = @Wait(explicitWaitSeconds = 1))
    Web2Call clickQuestionQuickCallW2C();

    @Click(value = QUESTION_QUICK_CALL_W2B_BUTTON, andWait = @Wait(value = W2B_SEARCH_BRANCH_INPUT, until = Until.VISIBLE))
    Web2Branch clickQuestionQuickCallW2B();

}