Commit ce8c7f46d265b85c76b9c4f0e8f3d22c93395f33
Merge branch 'v3-dev' of https://git.4k.com.ua/root/playtender-robot_tests into v3-dev
Showing
2 changed files
with
0 additions
and
52 deletions
... | ... | @@ -364,14 +364,6 @@ wait until 404 page disappears |
364 | 364 | ${result} = get is 404 page |
365 | 365 | run keyword if ${result} == ${True} wait until keyword succeeds ${retry} ${retry_interval} reload page and fail if element exists ${error_page_404_checker_element_locator} |
366 | 366 | |
367 | -Click and wait for the search | |
368 | - [Arguments] ${click_locator} ${wanted_locator} ${timeout} | |
369 | - [Documentation] Натиснути и дочекатися пошуку | |
370 | - ... click_locator: Where to click | |
371 | - ... wanted_locator: What are we waiting for | |
372 | - ... timeout: Timeout | |
373 | - Press key ${click_locator} \\13 | |
374 | - Wait Until Page Contains Element ${wanted_locator} ${timeout} | |
375 | 367 | ######################################################################################################################## |
376 | 368 | ################################################### PRIVATE KEYWORDS ################################################### |
377 | 369 | ######################################################################################################################## |
... | ... | @@ -434,7 +426,6 @@ __private__select_classification_code_in_opened_popup |
434 | 426 | run keyword if ${scheme_tab_exists} == ${True} click visible element ${scheme_tab_locator} |
435 | 427 | run keyword if ${scheme_tab_exists} == ${True} wait until tab content is visible ${scheme_tab_locator} |
436 | 428 | ... ELSE __private__log Classification scheme tab ${scheme} does not exist |
437 | - wait until popup is visible | |
438 | 429 | # seraching code |
439 | 430 | input text to visible input and press enter ${classification_popup_search_input_locator} ${code} |
440 | 431 | ${code} = convert to string ${code} | ... | ... |
... | ... | @@ -127,46 +127,3 @@ save plan form and wait synchronization |
127 | 127 | submit form and check result ${plan_form_submit_btn_locator} ${plan_form_submit_success_msg} ${plan_created_checker_element_locator} |
128 | 128 | wait until page does not contain element with reloading ${plan_sync_element_locator} |
129 | 129 | |
130 | -get plan field value by name | |
131 | - [Arguments] ${key} | |
132 | - [Documentation] Отримати інформацію із плану, користуючись ідентіфікатором плану та назвою поля ${key}. | |
133 | - | |
134 | - ${budget}= get_invisible_text jquery=#general-info .budget-amount | |
135 | - Run Keyword And Return If '${key}' == 'tender.procurementMethodType' get_invisible_text jquery=#general-info .procurement-method-type | |
136 | - Run Keyword And Return If '${key}' == 'budget.amount' Convert To Number ${budget} | |
137 | - Run Keyword And Return If '${key}' == 'budget.description' get_text jquery=#general-info .budget-description .value | |
138 | - Run Keyword And Return If '${key}' == 'budget.currency' get_invisible_text jquery=#general-info .budget-currency | |
139 | - Run Keyword And Return If '${key}' == 'budget.id' get_text jquery=#general-info .budget-id .value | |
140 | - Run Keyword And Return If '${key}' == 'budget.project.id' get_invisible_text jquery=#general-info .budget-project-id | |
141 | - Run Keyword And Return If '${key}' == 'budget.project.name' get_invisible_text jquery=#general-info .budget-project-name | |
142 | - Run Keyword And Return If '${key}' == 'classification.description' get_invisible_text jquery=#general-info .main-classification-description | |
143 | - Run Keyword And Return If '${key}' == 'classification.scheme' get_invisible_text jquery=#general-info .main-classification-scheme | |
144 | - Run Keyword And Return If '${key}' == 'classification.id' get_invisible_text jquery=#general-info .main-classification-code | |
145 | - Run Keyword And Return If '${key}' == 'tender.tenderPeriod.startDate' get_invisible_text jquery=#general-info .tender-start-date-source | |
146 | - ${procuringEntityNeedToBeVisible}= Run Keyword And Return Status Should Start With ${key} procuringEntity | |
147 | - Run Keyword If ${procuringEntityNeedToBeVisible} JsSetScrollToElementBySelector \#procuring-entity-info | |
148 | - Run Keyword And Return If '${key}' == 'procuringEntity.name' get_invisible_text jquery=#procuring-entity-info .name | |
149 | - Run Keyword And Return If '${key}' == 'procuringEntity.identifier.scheme' get_invisible_text jquery=#procuring-entity-info .identifier-scheme | |
150 | - Run Keyword And Return If '${key}' == 'procuringEntity.identifier.id' get_invisible_text jquery=#procuring-entity-info .identifier-code | |
151 | - Run Keyword And Return If '${key}' == 'procuringEntity.identifier.legalName' get_text jquery=#procuring-entity-info .legal-name .value | |
152 | - ${item0NeedToBeVisible}= Run Keyword And Return Status Should Start With ${key} items[0] | |
153 | - Run Keyword If ${item0NeedToBeVisible} JsCollapseShowAndScroll ${item0Wrapper} | |
154 | - Run Keyword And Return If '${key}' == 'items[0].description' get_text jquery=div#accordionItems.panel-group div.panel.panel-default .panel-collapse.collapse.in div.panel-body div#w1.item-info-wrapper.info-wrapper p.title span.value | |
155 | - Run Keyword And Return If '${key}' == 'items[0].quantity' Get invisible text number by locator jquery=${item0Wrapper} .item-info-wrapper .quantity-source | |
156 | - Run Keyword And Return If '${key}' == 'items[0].deliveryDate.endDate' get_invisible_text jquery=${item0Wrapper} .item-info-wrapper .delivery-end-date-source | |
157 | - Run Keyword And Return If '${key}' == 'items[0].unit.code' get_invisible_text jquery=${item0Wrapper} .item-info-wrapper .unit-code-source | |
158 | - Run Keyword And Return If '${key}' == 'items[0].unit.name' get_invisible_text jquery=${item0Wrapper} .item-info-wrapper .unit-title-source | |
159 | - Run Keyword And Return If '${key}' == 'items[0].classification.description' get_invisible_text jquery=${item0Wrapper} .item-info-wrapper .main-classification-description | |
160 | - Run Keyword And Return If '${key}' == 'items[0].classification.scheme' get_invisible_text jquery=${item0Wrapper} .item-info-wrapper .main-classification-scheme | |
161 | - Run Keyword And Return If '${key}' == 'items[0].classification.id' get_invisible_text jquery=${item0Wrapper} .item-info-wrapper .main-classification-code | |
162 | - ${item1NeedToBeVisible}= Run Keyword And Return Status Should Start With ${key} items[1] | |
163 | - Run Keyword If ${item1NeedToBeVisible} JsCollapseShowAndScroll ${item1Wrapper} | |
164 | - Run Keyword And Return If '${key}' == 'items[1].description' get_text jquery=${item1Wrapper} .item-info-wrapper .title .value | |
165 | - Run Keyword And Return If '${key}' == 'items[1].quantity' Get invisible text number by locator jquery=${item1Wrapper} .item-info-wrapper .quantity-source | |
166 | - Run Keyword And Return If '${key}' == 'items[1].deliveryDate.endDate' get_invisible_text jquery=${item1Wrapper} .item-info-wrapper .delivery-end-date-source | |
167 | - Run Keyword And Return If '${key}' == 'items[1].unit.code' get_invisible_text jquery=${item1Wrapper} .item-info-wrapper .unit-code-source | |
168 | - Run Keyword And Return If '${key}' == 'items[1].unit.name' get_invisible_text jquery=${item1Wrapper} .item-info-wrapper .unit-title-source | |
169 | - Run Keyword And Return If '${key}' == 'items[1].classification.description' get_invisible_text jquery=${item1Wrapper} .item-info-wrapper .main-classification-description | |
170 | - Run Keyword And Return If '${key}' == 'items[1].classification.scheme' get_invisible_text jquery=${item1Wrapper} .item-info-wrapper .main-classification-scheme | |
171 | - Run Keyword And Return If '${key}' == 'items[1].classification.id' get_invisible_text jquery=${item1Wrapper} .item-info-wrapper .main-classification-code | |
172 | - | ... | ... |
Please
register
or
login
to post a comment