playtender_variables.robot
4.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
*** Variables ***
${kekv_schemes} = ["KEKV", "КЕКВ"]
${site_allowed_schemes} = ["ДК021", "ДК015", "ДК018", "ДК003", "specialNorms", "INN", "ATC"]
${page_content_locator} = jquery=.page__content
# alerts
${alert_opened_locator} = jquery=.jconfirm:last .content
${alert_confirm_btn_locator} = jquery=.jconfirm:last .buttons .js-btn-confirm
${alert_opened_close_btn_locator} = jquery=.jconfirm:last .closeIcon
${alert_message_contains_text_locator_tpl} = jquery=.jconfirm:last .message:contains(%text%)
# popups
${popup_opened_last_locator} = jquery=.fancybox-is-open:last
${popup_opened_last_submit_btn_locator} = jquery=.fancybox-is-open:last .fancybox-slide--current .modal-footer:last .js-submit,.fancybox-is-open:last .fancybox-slide--current .modal-footer:last .js-popup-submit
${popup_opened_content_locator} = jquery=.fancybox-is-open .fancybox-slide--current .fancybox-content # for checking if it's visible
# error pages
${error_page_404_checker_element_locator} = jquery=.site-error[data-error-code="404"]
# language
${language_selector_active_element_locator} = jquery=.languages.page-header__languages .languages__btn
${language_selector_active_element_code_attribute_name} = data-language-code
${language_selector_open_element_locator} = jquery=.languages.page-header__languages .js-popup-open-initiator
${language_selector_active_element_by_code_locator_tpl} = jquery=.languages.page-header__languages .languages__btn[data-language-code='%code%']
${language_selector_list_element_locator_tpl} = jquery=.languages.page-header__languages .popup.languages__menu .languages__link[data-language-code='%code%']
# classification popup
${classification_popup_opened_content_locator} = jquery=.fancybox-is-open .fancybox-slide--current .fancybox-content.classification-modal # for checking if it's visible
${classification_popup_scheme_tab_locator_tpl} = jquery=.fancybox-is-open .fancybox-slide--current .fancybox-content.classification-modal .nav a[data-toggle="tab"][data-scheme="%scheme%"]
${classification_popup_search_input_locator} = jquery=.fancybox-is-open .fancybox-slide--current .fancybox-content.classification-modal .js-search-wrapper:visible .js-input
${classification_popup_serach_item_locator_tpl} = jquery=.fancybox-is-open .fancybox-slide--current .fancybox-content.classification-modal .js-search-wrapper:visible .js-search-tree strong:contains(%code%)
# authorization
${login_popup_open_locator} = jquery=.page__header a[data-action="login"]
${login_popup_login_input_locator} = id=loginform-email
${login_popup_password_input_locator} = id=loginform-password
${login_popup_submit_btn_locator} = jquery=#login-form .js-submit-btn
${user_logged_checker_element_locator} = id=notifications-button # елемент для перевірки чи авторизований користувач
# item form
${item_form_popup_description_input_locator} = jquery=.fancybox-is-open:last .fancybox-slide--current .fancybox-content [id$='-description']
${item_form_popup_description_ru_input_locator} = jquery=.fancybox-is-open:last .fancybox-slide--current .fancybox-content [id$='-description_ru']
${item_form_popup_description_en_input_locator} = jquery=.fancybox-is-open:last .fancybox-slide--current .fancybox-content [id$='-description_en']
${item_form_popup_quantity_input_locator} = jquery=.fancybox-is-open:last .fancybox-slide--current .fancybox-content [id$='-quantity']
${item_form_popup_unit_input_locator} = jquery=.fancybox-is-open:last .fancybox-slide--current .fancybox-content [id$='-unit_id']
${item_form_popup_classification_edit_btn_locator} = jquery=.fancybox-is-open:last .fancybox-slide--current .fancybox-content .js-classification-input-wrapper [data-toggle="classification"]
${item_form_popup_additional_classification_edit_btn_locator} = jquery=.fancybox-is-open:last .fancybox-slide--current .fancybox-content .js-additional-classification-input-wrapper [data-toggle="additional-classification"]