Commit 7b6ccd90545aa58e4f8cebaa247d592bccdfa6b4

Authored by Playtenders
1 parent 09a09b86

Execute Javascript question_open_form_answer_js_btn_locator

... ... @@ -15,9 +15,9 @@ open tender form prequalification
15 15 run keyword if ${qualification_num} == 0 wait until page contains element with reloading ${prequalification_form_0_open_btn_locator}
16 16 run keyword if ${qualification_num} == 0 click visible element ${prequalification_form_0_open_btn_locator}
17 17 run keyword if ${qualification_num} == 1 click visible element ${prequalification_form_1_open_btn_locator}
18   - run keyword if ${qualification_num} == -1 click visible element ${prequalification_form__1_open_btn_locator}
19   - run keyword if ${qualification_num} == -2 wait until page contains element with reloading ${prequalification_form__2_open_btn_locator}
20   - run keyword if ${qualification_num} == -2 click visible element ${prequalification_form__2_open_btn_locator}
  18 + run keyword if ${qualification_num} == -1 click visible element ${prequalification_form_-1_open_btn_locator}
  19 + run keyword if ${qualification_num} == -2 wait until page contains element with reloading ${prequalification_form_-2_open_btn_locator}
  20 + run keyword if ${qualification_num} == -2 click visible element ${prequalification_form_-2_open_btn_locator}
21 21 # run keyword if ${qualification_num} == -2 execute javascript $('#bids-pjax .pseudo-table__row:last a[href*="/tender/prequalification"]').click()
22 22
23 23 confirm qualifications
... ...
... ... @@ -5,8 +5,8 @@ ${prequalification_form_0_open_btn_locator} = jquery=#bids
5 5 ${prequalification_form_1_open_btn_locator} = jquery=#bids-pjax .pseudo-table__row[qualification-index="1"] a[href*="/tender/prequalification"]
6 6 ${prequalification_form_2_open_btn_locator} = jquery=#bids-pjax .pseudo-table__row[qualification-index="2"] a[href*="/tender/prequalification"]
7 7 ${prequalification_form_3_open_btn_locator} = jquery=#bids-pjax .pseudo-table__row[qualification-index="3"] a[href*="/tender/prequalification"]
8   -${prequalification_form__1_open_btn_locator} = jquery=#bids-pjax .pseudo-table__row[qualification-negative-index="-1"] a[href*="/tender/prequalification"]
9   -${prequalification_form__2_open_btn_locator} = jquery=#bids-pjax .pseudo-table__row[qualification-negative-index="-2"] a[href*="/tender/prequalification"]
  8 +${prequalification_form_-1_open_btn_locator} = jquery=#bids-pjax .pseudo-table__row[qualification-negative-index="-1"] a[href*="/tender/prequalification"]
  9 +${prequalification_form_-2_open_btn_locator} = jquery=#bids-pjax .pseudo-table__row[qualification-negative-index="-2"] a[href*="/tender/prequalification"]
10 10 ${prequalification_form_last_open_btn_locator} = jquery=#bids-pjax .pseudo-table__row[qualification-index-last] a[href*="/tender/prequalification"]
11 11 ${prequalification_form_approve_open_btn_locator} = jquery=.aside__inner a[href*="/tender/prequalification-approve"]
12 12 ${prequalification_form_accept_input_locator} = $('#prequalificationform-decision').val('accept').change()
... ...
... ... @@ -39,7 +39,9 @@ answer question
39 39 wait until page contains element with reloading ${question_open_form_answer_locator}
40 40 ${question_form_open_form_answer_btn_locator} = replace string ${question_form_open_form_answer_btn_locator_tpl} %title% ${question_id}
41 41 wait until page contains element with reloading ${question_form_open_form_answer_btn_locator}
42   - open popup by btn locator ${question_form_open_form_answer_btn_locator}
  42 + ${question_open_form_answer_js_btn_locator} = replace string ${question_open_form_answer_js_btn_locator_tpl} %title% ${question_id}
  43 +# open popup by btn locator ${question_form_open_form_answer_btn_locator}
  44 + Execute Javascript ${question_open_form_answer_js_btn_locator}
43 45 input text to exist visible input ${question_form_open_form_answer_input_locator} ${answer_data.data.answer}
44 46 submit form and check result ${question_form_answer_submit_btn_locator} ${question_form_submit_answer_success_msg} ${tender_created_checker_element_locator}
45 47
... ...
... ... @@ -3,6 +3,7 @@
3 3 #question
4 4 ${question_form_open_btn_locator} = jquery=#aside-part-pjax a[href*="/tender/questions"]
5 5 ${question_open_form_answer_btn_locator_tpl} = jquery=#tender-question-list .js-item div[data-title*="%title%"]
  6 +${question_open_form_answer_js_btn_locator_tpl} = $('#tender-question-list .js-item div[data-title*="%title%"]').click()
6 7 ${question_form_open_form_answer_btn_locator_tpl} = jquery=#tender-question-list .js-item div[data-title*="%title%"] .btn.btn-default
7 8 ${question_form_open_form_answer_input_locator} = jquery=.fancybox-is-open .fancybox-content #tender-question-answer-form #questionanswerform-answer
8 9 ${question_form_answer_submit_btn_locator} = jquery=.fancybox-is-open .fancybox-content button.js-submit-btn
... ...
Please register or login to post a comment