playtender_variables.robot
17.1 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
*** 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"]
${item_form_popup_delivery_region_id_input_locator} = jquery=.fancybox-is-open:last .fancybox-slide--current .fancybox-content [id$='-delivery_region_id']
${item_form_popup_delivery_postal_code_input_locator} = jquery=.fancybox-is-open:last .fancybox-slide--current .fancybox-content [id$='-delivery_postal_code']
${item_form_popup_delivery_locality_input_locator} = jquery=.fancybox-is-open:last .fancybox-slide--current .fancybox-content [id$='-delivery_locality']
${item_form_popup_delivery_street_address_input_locator} = jquery=.fancybox-is-open:last .fancybox-slide--current .fancybox-content [id$='-delivery_street_address']
${item_form_popup_delivery_start_date_input_locator} = jquery=.fancybox-is-open:last .fancybox-slide--current .fancybox-content [id$='-delivery_start_date']
${item_form_popup_delivery_end_date_input_locator} = jquery=.fancybox-is-open:last .fancybox-slide--current .fancybox-content [id$='-delivery_end_date']
# buyer form
${buyer_form_popup_legal_name_input_locator} = jquery=.fancybox-is-open:last .fancybox-slide--current .fancybox-content [id$='-procuring_entity_name']
${buyer_form_popup_identifier_id_input_locator} = jquery=.fancybox-is-open:last .fancybox-slide--current .fancybox-content [id$='-procuring_entity_identifier_code']
# tender form
${tender_form_submit_success_msg} = дочекайтесь опублікування на сайті уповноваженого органу.
${tender_form_locator} = id=tender-form
${tender_form_procurement_method_type_input_locator} = jquery=[id$="form-procurement_method_type"]
${tender_multilot_locator} = jquery=[id$="form-is_multilot"]
${tender_form_general_panel_edit_btn_locator} = jquery=#General #headingGeneral .actions-wrapper .js-form-popup-update
${tender_form_general_tender_title_locator} = jquery=[id$="form-title"]
${tender_form_general_tender_title_en_locator} = jquery=[id$="form-title_en"]
${tender_form_general_tender_description_locator} = jquery=[id$="form-description"]
${tender_form_general_tender_description_en_locator} = jquery=[id$="form-description_en"]
${tender_form_general_tender_funder_locator} = jquery=[id$="form-is_donor"]
${tender_form_general_value_amount_input_locator} = jquery=[id$="form-value_amount"]
${tender_form_general_value_currency_input_locator} = jquery=[id$="form-value_currency"]
${tender_form_general_value_added_tax_input_locator} = jquery=[id$="form-value_added_tax_included"]
${tender_form_general_minimalStep_amount_input_locator} = jquery=[id$="form-min_step_amount"]
${tender_form_general_main_procurement_category_input_locator} = jquery=[id$="form-main_procurement_category"]
${tender_enquiry_period_start_date_input_locator} = jquery=[id$="form-enquiry_period_start_date"]
${tender_enquiry_period_end_date_input_locator} = jquery=[id$="form-enquiry_period_end_date"]
${tender_tender_period_start_date_input_locator} = jquery=[id$="form-tender_period_start_date"]
${tender_tender_period_end_date_input_locator} = jquery=[id$="form-tender_period_end_date"]
${tender_tender_quick_mode_locator} = jquery=[id$="form-quick_mode"]
#esco
${tender_form_general_funding_kind_input_locator} = id=tenderescoform-funding_kind
${tender_form_general_nbu_discount_rate_input_locator} = id=tenderescoform-nbu_discount_rate
#closeframework
${tender_form_general_max_awards_count_input_locator} = jquery=[id$="form-max_awards_count"]
${tender_form_general_agreement_duration_years_input_locator} = jquery=[id$="form-agreement_duration_years"]
${tender_form_general_agreement_duration_months_input_locator} = jquery=[id$="form-agreement_duration_months"]
${tender_form_general_agreement_duration_days_input_locator} = jquery=[id$="form-agreement_duration_days"]
${tender_form_general_panel_add_feature_btn_locator} = jquery=#collapseGeneral .btn[data-attribute="features"]
${tender_form_features_panel_edit_btn_locator} = jquery=.fancybox-content [href$="#add-features"]
${feature_form_popup_title_input_locator} = jquery=.fancybox-is-open .tab-content:first > .tab-pane.active:first [id$="-title"]:first
${feature_form_popup_description_input_locator} = jquery=.fancybox-is-open .tab-content:first > .tab-pane.active:first [id$="-description"]:first
${feature_form_popup_title_en_input_locator} = jquery=.fancybox-is-open .tab-content:first > .tab-pane.active:first [id$="-title_en"]:first
${feature_form_popup_description_en_input_locator} = jquery=.fancybox-is-open .tab-content:first > .tab-pane.active:first [id$="-description_en"]:first
${feature_form_popup_value_input_locator} = jquery=[id$="-value"]
${feature_form_popup_add-enums_btn_locator} = jquery=.fancybox-is-open .enums-dynamic-forms-wrapper .btn-add a[href$="#add-enums"]
${feature_form_popup_enum_title_input_locator} = jquery=.fancybox-is-open .enums-dynamic-forms-wrapper .tab-content:first > .tab-pane.active input[id$="-title"]
${feature_form_popup_enum_title_en_input_locator} = jquery=.fancybox-is-open .enums-dynamic-forms-wrapper .tab-content:first > .tab-pane.active input[id$="-title_en"]
${feature_form_popup_enum_value_input_locator} = jquery=.fancybox-is-open .enums-dynamic-forms-wrapper .tab-content:first > .tab-pane.active input[id$="-value"]
${tender_form_general_panel_add_document_btn_locator} = jquery=#collapseGeneral .btn[data-attribute="documents"]
${tender_form_general_panel_edit_add_document_btn_locator} = jquery=div[data-form="general-form-popup"] .js-form-hidden-popup-panel:last a.btn-update
#${tender_form_item_add_edit_btn_locator} = jquery=.js-form-group-popup-panel .panel-heading .actions-wrapper .js-form-popup-add
#последняя кнопка “Додати” для номенклатуры (для лотовой и безлотовой)
${tender_form_item_add_edit_btn_locator} = jquery=.form-group-popup-panel[data-attribute="items"]:last > .panel-heading .js-form-popup-add
${tender_form_item_panel_add_feature_btn_locator} = jquery=.form-group-popup-panel[data-attribute="items"]:last .js-form-popup-panel-list:first > .js-form-popup-panel-item:last .actions-wrapper .btn[data-attribute="features"]
#${tender_form_milestones_panel_edit_btn_locator} = jquery=[data-url$="#milestones-form-popup"]
${tender_form_milestones_panel_edit_btn_locator} = jquery=.form-popup-panel[data-attribute="milestones"]:last > .panel-heading .js-form-popup-update
${milestone_form_popup_add_btn_locator} = jquery=.fancybox-is-open [href$="#add-milestones"]
${milestone_form_popup_title_input_locator} = jquery=.fancybox-is-open:last .tab-content:first > .tab-pane.active:first [id$="-title"]
${milestone_form_popup_description_input_locator} = jquery=.fancybox-is-open:last .tab-content:first > .tab-pane.active:first [id$="-description"]
${milestone_form_popup_percentage_input_locator} = jquery=.fancybox-is-open:last .tab-content:first > .tab-pane.active:first [id$="-percentage"]
${milestone_form_popup_code_input_locator} = jquery=.fancybox-is-open:last .tab-content:first > .tab-pane.active:first [id$="-code"]
${milestone_form_popup_duration_days_input_locator} = jquery=.fancybox-is-open:last .tab-content:first > .tab-pane.active:first [id$="-duration_days"]
${milestone_form_popup_duration_type_input_locator} = jquery=.fancybox-is-open:last .tab-content:first > .tab-pane.active:first [id$="-duration_type"]
${tender_form_lots_panel_edit_btn_locator} = jquery=a.btn.btn-default.btn-update.js-form-popup-add
${lot_form_popup_add_btn_locator} = jquery=[href$="#add-milestones"]
${lot_form_popup_title_input_locator} = jquery=.fancybox-is-open [id$="-title"]
${lot_form_popup_description_input_locator} = jquery=.fancybox-is-open [id$="-description"]
${lot_form_popup_title_en_input_locator} = jquery=.fancybox-is-open [id$="-title_en"]
${lot_form_popup_description_en_input_locator} = jquery=.fancybox-is-open [id$="-description_en"]
${lot_form_popup_value_amount_input_locator} = jquery=.fancybox-is-open [id$="-value_amount"]
${lot_form_popup_value_currency_input_locator} = jquery=.fancybox-is-open [id$="-value_currency"]
${lot_form_popup_value_added_tax_input_locator} = jquery=.fancybox-is-open [id$="-value_added_tax_included"]
${lot_form_popup_minimalstep_amount_input_locator} = jquery=.fancybox-is-open [id$="-min_step_amount"]
${lot_form_popup_min_step_percentage_amount_input_locator} = jquery=.fancybox-is-open [id$="-min_step_percentage"]
${tender_form_lot_panel_add_feature_btn_locator} = jquery=#Lots .js-form-popup-panel-list:first > .js-form-popup-panel-item:last .actions-wrapper .btn[data-attribute="features"]
${tender_form_lot_panel_add_document_btn_locator_tpl} = jquery=#Lots #collapseLots div[data-title*="%lot_id%"] .actions-wrapper a.js-btn-add-form-popup-panel:last'
${tender_form_lot_panel_edit_add_document_btn_locator} = jquery=#Lots #collapseLots div[data-title*="%lot_id%"] .js-form-hidden-popup-panel:last .actions-wrapper a.js-form-popup-update
#${tender_form_milestones_percentage_locator} = jquery=.js-item.tab-pane.active [id$="-percentage"]
#${tender_form_milestones_code_locator} = jquery=.tab-pane.active [id$="-code"]
#${tender_form_milestones_duration_days_locator} = jquery=-pane.active [id$="-duration_days"]
#${tender_form_milestones_duration_type_locator} = jquery=-pane.active [id$="-duration_type"]
${tender_form_procuringEntity_contactPoint_edit_btn_locator} = jquery=(#tender-form .panel.panel-default.form-popup-panel.js-form-popup-panel .panel-heading .actions-wrapper .js-form-popup-update)[4]
${tender_form_submit_btn_locator} = jquery=#tender-form .js-submit-btn
${tender_created_checker_element_locator} = id=tender-part-pjax
# tender view
${tender_view_checker_element_locator} = id=tender-general-info
${tender_sync_element_locator} = jquery=#aside-part-pjax .status-label .fa-refresh
${tender_uaid_text_locator} = jquery=#tender-general-info .tender-id .value
${tender_edit_btn_locator} = jquery=#aside-part-pjax a[href*='tender/update']
#елемент проверки загрузки формы в попапе
${popup_dynamic_form_loading_element_locator} = jquery=.fancybox-is-open .btn-add .fa-spin
#${add_file_to_form} xpath=//input[@type='file']
${add_file_to_form_locator} = jquery=.fancybox-is-open input[type$="file"]
# tender index + search
${tender_search_form_locator} = id=tender-filter-form
${tender_search_form_query_input_locator} = jquery=#tender-filter-form .dynamic-search-query input
${tender_search_form_result_locator_tpl} = jquery=#tender-list .lots__item .lot__characteristic li:contains(%query%)
# -- for viewer --
${tender_milestones_0_code_value_locator} = jquery=#
${tender_milestones_0_title_value_locator} = jquery=#
${tender_milestones_0_percentage_value_locator} = jquery=#
${tender_milestones_0_duration_days_value_locator} = jquery=#
${tender_milestones_0_duration_type_value_locator} = jquery=#
${tender_value_amount_value_locator} = jquery=#