Showing
1 changed file
with
8 additions
and
2 deletions
@@ -3247,11 +3247,17 @@ Switch To Complaints | @@ -3247,11 +3247,17 @@ Switch To Complaints | ||
3247 | Click Element xpath=//button[@class='btn btn-default fa fa-search js-submit-btn'] | 3247 | Click Element xpath=//button[@class='btn btn-default fa fa-search js-submit-btn'] |
3248 | #cat Press key xpath=//input[@data-ds='query-input'] \\13 | 3248 | #cat Press key xpath=//input[@data-ds='query-input'] \\13 |
3249 | Sleep 1 | 3249 | Sleep 1 |
3250 | + ${passed}= Run Keyword And Return Status Wait Until Keyword Succeeds 360 s 0 s Шукати і знайти план | ||
3251 | + Run Keyword Unless ${passed} Fatal Error Тендер не знайдено за 360 секунд | ||
3252 | + | ||
3250 | Wait Until Page Does Not Contain Element jquery=#plan-list-pjax.loading-wrapper | 3253 | Wait Until Page Does Not Contain Element jquery=#plan-list-pjax.loading-wrapper |
3251 | Capture Page Screenshot | 3254 | Capture Page Screenshot |
3252 | Click Element xpath=(//div[@id='plan-list-pjax'])//a[contains(@href, '/plan/')][1] | 3255 | Click Element xpath=(//div[@id='plan-list-pjax'])//a[contains(@href, '/plan/')][1] |
3253 | Sleep 5 | 3256 | Sleep 5 |
3254 | 3257 | ||
3258 | +Шукати і знайти план | ||
3259 | + Клацнути і дочекатися пошук xpath=//button[@class='btn btn-default fa fa-search js-submit-btn'] xpath=(//div[@id='plan-list-pjax'])//a[contains(@href, '/plan/')][1] 5 | ||
3260 | + | ||
3255 | Оновити сторінку з планом | 3261 | Оновити сторінку з планом |
3256 | [Arguments] ${username} ${tenderId} | 3262 | [Arguments] ${username} ${tenderId} |
3257 | 3263 | ||
@@ -3298,7 +3304,7 @@ Switch To Complaints | @@ -3298,7 +3304,7 @@ Switch To Complaints | ||
3298 | 3304 | ||
3299 | Отримати інформацію із плану | 3305 | Отримати інформацію із плану |
3300 | [Arguments] ${username} ${uaid} ${key} | 3306 | [Arguments] ${username} ${uaid} ${key} |
3301 | - ${item0Wrapper}= Set Variable \#accordionItems .panel:nth(0) .panel-collapse:first | 3307 | + ${item0Wrapper}= Set Variable \#accordionItems .panel:nth(0) .panel-collapse:first |
3302 | ${item1Wrapper}= Set Variable \#accordionItems .panel:nth(1) .panel-collapse:first | 3308 | ${item1Wrapper}= Set Variable \#accordionItems .panel:nth(1) .panel-collapse:first |
3303 | ${budget}= get_invisible_text jquery=#general-info .budget-amount | 3309 | ${budget}= get_invisible_text jquery=#general-info .budget-amount |
3304 | 3310 | ||
@@ -3323,7 +3329,7 @@ Switch To Complaints | @@ -3323,7 +3329,7 @@ Switch To Complaints | ||
3323 | Run Keyword And Return If '${key}' == 'procuringEntity.identifier.legalName' get_text jquery=#procuring-entity-info .legal-name .value | 3329 | Run Keyword And Return If '${key}' == 'procuringEntity.identifier.legalName' get_text jquery=#procuring-entity-info .legal-name .value |
3324 | ${item0NeedToBeVisible}= Run Keyword And Return Status Should Start With ${key} items[0] | 3330 | ${item0NeedToBeVisible}= Run Keyword And Return Status Should Start With ${key} items[0] |
3325 | Run Keyword If ${item0NeedToBeVisible} JsCollapseShowAndScroll ${item0Wrapper} | 3331 | Run Keyword If ${item0NeedToBeVisible} JsCollapseShowAndScroll ${item0Wrapper} |
3326 | - Run Keyword And Return If '${key}' == 'items[0].description' get_text jquery=${item0Wrapper} .item-info-wrapper .title .value | 3332 | + 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 |
3327 | Run Keyword And Return If '${key}' == 'items[0].quantity' Get invisible text number by locator jquery=${item0Wrapper} .item-info-wrapper .quantity-source | 3333 | Run Keyword And Return If '${key}' == 'items[0].quantity' Get invisible text number by locator jquery=${item0Wrapper} .item-info-wrapper .quantity-source |
3328 | Run Keyword And Return If '${key}' == 'items[0].deliveryDate.endDate' get_invisible_text jquery=${item0Wrapper} .item-info-wrapper .delivery-end-date-source | 3334 | Run Keyword And Return If '${key}' == 'items[0].deliveryDate.endDate' get_invisible_text jquery=${item0Wrapper} .item-info-wrapper .delivery-end-date-source |
3329 | Run Keyword And Return If '${key}' == 'items[0].unit.code' get_invisible_text jquery=${item0Wrapper} .item-info-wrapper .unit-code-source | 3335 | Run Keyword And Return If '${key}' == 'items[0].unit.code' get_invisible_text jquery=${item0Wrapper} .item-info-wrapper .unit-code-source |
Please
register
or
login
to post a comment