Commit 9ef8e65b45983dae5d252ad6746f0350eb353b3a

Authored by Playtenders
1 parent 7d07b3e9

bid status

Showing 1 changed file with 22 additions and 7 deletions
... ... @@ -216,21 +216,26 @@ get bid information
216 216 ... username для тендера tender_uaid.
217 217
218 218 capture page screenshot
219   - open popup by btn locator ${bid_form_open_btn_locator} ${bid_popup_locator}
  219 + Run Keyword If 'status' == '${field}' submit form and check result ${bid_form_refresh_btn_locator} ${bid_form_refresh_success_msg} ${tender_created_checker_element_locator} ${true}
  220 + Run Keyword If 'status' != '${field}' open popup by btn locator ${bid_form_open_btn_locator} ${bid_popup_locator}
220 221 # click visible element ${bid_form_open_btn_locator}
221 222 capture page screenshot
222   - wait until popup is visible
  223 + Run Keyword If 'status' != '${field}' wait until popup is visible
223 224 # ${question_open_form_answer_locator} = replace string ${question_open_form_answer_btn_locator_tpl} %title% ${question_id}
224 225 # wait until page contains element with reloading ${question_open_form_answer_locator}
225 226 capture page screenshot
226 227 Run Keyword If 'status' == '${field}' submit form and check result ${bid_form_refresh_btn_locator} ${bid_form_refresh_success_msg} ${tender_created_checker_element_locator} ${true}
227 228 #${return_value} = Run Keyword If 'lotValues[0].value.amount' == '${field}' get value by locator on opened page ${bid_lotValues_0_value_amount_value_locator}
228   - ${return_value} = Run Keyword If 'lotValues[0].value.amount' == '${field}' get value by locator on opened page ${bid_lotValues_0_value_amount_value_locator}
229   - ... ELSE Run Keyword If 'status' == '${field}' get_text ${bid_form_bid_status_btn_locator}
230   - ... ELSE Run Keyword If 'value.amount' == '${field}' get value by locator on opened page ${bid_form_value_amount_input_locator}
  229 + ${return_value} = Run Keyword If 'lotValues[0].value.amount' == '${field}' get bid value ${bid_lotValues_0_value_amount_value_locator}
  230 + ... ELSE Run Keyword If 'status' == '${field}' get value by locator on opened page ${bid_form_bid_status_btn_locator}
  231 + ... ELSE Run Keyword If 'value.amount' == '${field}' get bid value ${bid_form_value_amount_input_locator}
  232 +## ${return_value} = Run Keyword If 'lotValues[0].value.amount' == '${field}' get value by locator on opened page ${bid_lotValues_0_value_amount_value_locator}
  233 +# ... ELSE Run Keyword If 'status' == '${field}' get_text ${bid_form_bid_status_btn_locator}
  234 +## ... ELSE Run Keyword If 'status' == '${field}' get value by locator on opened page ${bid_form_bid_status_btn_locator}
  235 +## ... ELSE Run Keyword If 'value.amount' == '${field}' get value by locator on opened page ${bid_form_value_amount_input_locator}
231 236 # submit current visible popup
232   - ${return_value} = Run Keyword If 'lotValues[0].value.amount' == '${field}' or 'value.amount' == '${field}' playtender_service.split_joinvalue ${return_value}
233   - ${return_value} = Run Keyword If 'lotValues[0].value.amount' == '${field}' or 'value.amount' == '${field}' Convert To Number ${return_value}
  237 +## ${return_value} = Run Keyword If 'lotValues[0].value.amount' == '${field}' or 'value.amount' == '${field}' playtender_service.split_joinvalue ${return_value}
  238 +## ${return_value} = Run Keyword If 'lotValues[0].value.amount' == '${field}' or 'value.amount' == '${field}' Convert To Number ${return_value}
234 239 [Return] ${return_value}
235 240
236 241 fill bid form remove
... ... @@ -240,3 +245,13 @@ fill bid form remove
240 245 click visible element ${bid_form_remove_btn_locator}
241 246 submit form and check result ${alert_opened_close_bid_btn_locator} ${bid_form_submit_remove_success_msg} ${tender_created_checker_element_locator} ${true}
242 247
  248 +get bid value
  249 + [Arguments] ${field}
  250 + [Documentation] Отримати значення поля field пропозиції користувача
  251 + ... username для тендера tender_uaid.
  252 +
  253 + ${return_value} = get value by locator on opened page ${field}
  254 + ${return_value} = playtender_service.split_joinvalue ${return_value}
  255 + ${return_value} = Convert To Number ${return_value}
  256 + [Return] ${return_value}
  257 +
... ...
Please register or login to post a comment