Showing
2 changed files
with
11 additions
and
6 deletions
@@ -2137,8 +2137,8 @@ Save Proposal | @@ -2137,8 +2137,8 @@ Save Proposal | ||
2137 | 2137 | ||
2138 | ${current_tender_uaid}= Отримати інформацію із тендера tenderID | 2138 | ${current_tender_uaid}= Отримати інформацію із тендера tenderID |
2139 | 2139 | ||
2140 | -#cat Run Keyword And Return If 'NBUdiscountRate' == '${arguments[2]}' Get number from text by locator jquery=#tender-general-info .nbu-discount-rate .value | ||
2141 | - Run Keyword And Return If 'NBUdiscountRate' == '${arguments[2]}' Get number from text by locator jquery=#tender-general-info .nbu-discount-rate-source | 2140 | + Run Keyword And Return If 'NBUdiscountRate' == '${arguments[2]}' Get number from text by locator jquery=#tender-general-info .nbu-discount-rate .value |
2141 | +#cat Run Keyword And Return If 'NBUdiscountRate' == '${arguments[2]}' Get number from text by locator jquery=#tender-general-info .nbu-discount-rate-source | ||
2142 | Run Keyword And Return If 'auctionPeriod.startDate' == '${arguments[2]}' get_invisible_text jquery=.timeline-info-wrapper .auction-start-date | 2142 | Run Keyword And Return If 'auctionPeriod.startDate' == '${arguments[2]}' get_invisible_text jquery=.timeline-info-wrapper .auction-start-date |
2143 | Run Keyword And Return If 'lots[0].value.amount' == '${arguments[2]}' Get invisible text number by locator jquery=#accordionLots .lot-info-wrapper:first .budget-source.hidden | 2143 | Run Keyword And Return If 'lots[0].value.amount' == '${arguments[2]}' Get invisible text number by locator jquery=#accordionLots .lot-info-wrapper:first .budget-source.hidden |
2144 | Run Keyword And Return If 'lots[0].auctionPeriod.startDate' == '${arguments[2]}' get_invisible_text jquery=#accordionLots .lot-info-wrapper:first .auction-period-start-date.hidden | 2144 | Run Keyword And Return If 'lots[0].auctionPeriod.startDate' == '${arguments[2]}' get_invisible_text jquery=#accordionLots .lot-info-wrapper:first .auction-period-start-date.hidden |
@@ -2759,10 +2759,11 @@ Get invisible text number by locator | @@ -2759,10 +2759,11 @@ Get invisible text number by locator | ||
2759 | [return] ${return_value} | 2759 | [return] ${return_value} |
2760 | 2760 | ||
2761 | Get number from text by locator | 2761 | Get number from text by locator |
2762 | - [Arguments] ${locator} | ||
2763 | - ${return_value}= get_text ${locator} | ||
2764 | - ${return_value}= Convert To Number ${return_value} | ||
2765 | - [return] ${return_value} | 2762 | + [Arguments] ${locator} |
2763 | + ${return_value}= get_text ${locator} | ||
2764 | + ${return_value}= split_NBU ${return_value} | ||
2765 | + ${return_value}= Convert To Number ${return_value} | ||
2766 | + [return] ${return_value} | ||
2766 | 2767 | ||
2767 | Get invisible text boolean by locator | 2768 | Get invisible text boolean by locator |
2768 | [Arguments] ${locator} | 2769 | [Arguments] ${locator} |
@@ -85,6 +85,10 @@ def split_take_slice_to(value, separator, to): | @@ -85,6 +85,10 @@ def split_take_slice_to(value, separator, to): | ||
85 | librarylogger.console('split_take_slice_to') | 85 | librarylogger.console('split_take_slice_to') |
86 | return split_take_slice(value, separator, to=to) | 86 | return split_take_slice(value, separator, to=to) |
87 | 87 | ||
88 | +def split_NBU(text): | ||
89 | + text = text[:-1] | ||
90 | + return text | ||
91 | + | ||
88 | def join(l, separator): | 92 | def join(l, separator): |
89 | librarylogger.console('join') | 93 | librarylogger.console('join') |
90 | librarylogger.console(l) | 94 | librarylogger.console(l) |
Please
register
or
login
to post a comment