Commit 7b6ccd90545aa58e4f8cebaa247d592bccdfa6b4
1 parent
09a09b86
Execute Javascript question_open_form_answer_js_btn_locator
Showing
4 changed files
with
9 additions
and
6 deletions
@@ -15,9 +15,9 @@ open tender form prequalification | @@ -15,9 +15,9 @@ open tender form prequalification | ||
15 | run keyword if ${qualification_num} == 0 wait until page contains element with reloading ${prequalification_form_0_open_btn_locator} | 15 | run keyword if ${qualification_num} == 0 wait until page contains element with reloading ${prequalification_form_0_open_btn_locator} |
16 | run keyword if ${qualification_num} == 0 click visible element ${prequalification_form_0_open_btn_locator} | 16 | run keyword if ${qualification_num} == 0 click visible element ${prequalification_form_0_open_btn_locator} |
17 | run keyword if ${qualification_num} == 1 click visible element ${prequalification_form_1_open_btn_locator} | 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 | # run keyword if ${qualification_num} == -2 execute javascript $('#bids-pjax .pseudo-table__row:last a[href*="/tender/prequalification"]').click() | 21 | # run keyword if ${qualification_num} == -2 execute javascript $('#bids-pjax .pseudo-table__row:last a[href*="/tender/prequalification"]').click() |
22 | 22 | ||
23 | confirm qualifications | 23 | confirm qualifications |
@@ -5,8 +5,8 @@ ${prequalification_form_0_open_btn_locator} = jquery=#bids | @@ -5,8 +5,8 @@ ${prequalification_form_0_open_btn_locator} = jquery=#bids | ||
5 | ${prequalification_form_1_open_btn_locator} = jquery=#bids-pjax .pseudo-table__row[qualification-index="1"] a[href*="/tender/prequalification"] | 5 | ${prequalification_form_1_open_btn_locator} = jquery=#bids-pjax .pseudo-table__row[qualification-index="1"] a[href*="/tender/prequalification"] |
6 | ${prequalification_form_2_open_btn_locator} = jquery=#bids-pjax .pseudo-table__row[qualification-index="2"] a[href*="/tender/prequalification"] | 6 | ${prequalification_form_2_open_btn_locator} = jquery=#bids-pjax .pseudo-table__row[qualification-index="2"] a[href*="/tender/prequalification"] |
7 | ${prequalification_form_3_open_btn_locator} = jquery=#bids-pjax .pseudo-table__row[qualification-index="3"] a[href*="/tender/prequalification"] | 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 | ${prequalification_form_last_open_btn_locator} = jquery=#bids-pjax .pseudo-table__row[qualification-index-last] a[href*="/tender/prequalification"] | 10 | ${prequalification_form_last_open_btn_locator} = jquery=#bids-pjax .pseudo-table__row[qualification-index-last] a[href*="/tender/prequalification"] |
11 | ${prequalification_form_approve_open_btn_locator} = jquery=.aside__inner a[href*="/tender/prequalification-approve"] | 11 | ${prequalification_form_approve_open_btn_locator} = jquery=.aside__inner a[href*="/tender/prequalification-approve"] |
12 | ${prequalification_form_accept_input_locator} = $('#prequalificationform-decision').val('accept').change() | 12 | ${prequalification_form_accept_input_locator} = $('#prequalificationform-decision').val('accept').change() |
@@ -39,7 +39,9 @@ answer question | @@ -39,7 +39,9 @@ answer question | ||
39 | wait until page contains element with reloading ${question_open_form_answer_locator} | 39 | wait until page contains element with reloading ${question_open_form_answer_locator} |
40 | ${question_form_open_form_answer_btn_locator} = replace string ${question_form_open_form_answer_btn_locator_tpl} %title% ${question_id} | 40 | ${question_form_open_form_answer_btn_locator} = replace string ${question_form_open_form_answer_btn_locator_tpl} %title% ${question_id} |
41 | wait until page contains element with reloading ${question_form_open_form_answer_btn_locator} | 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 | input text to exist visible input ${question_form_open_form_answer_input_locator} ${answer_data.data.answer} | 45 | input text to exist visible input ${question_form_open_form_answer_input_locator} ${answer_data.data.answer} |
44 | submit form and check result ${question_form_answer_submit_btn_locator} ${question_form_submit_answer_success_msg} ${tender_created_checker_element_locator} | 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,6 +3,7 @@ | ||
3 | #question | 3 | #question |
4 | ${question_form_open_btn_locator} = jquery=#aside-part-pjax a[href*="/tender/questions"] | 4 | ${question_form_open_btn_locator} = jquery=#aside-part-pjax a[href*="/tender/questions"] |
5 | ${question_open_form_answer_btn_locator_tpl} = jquery=#tender-question-list .js-item div[data-title*="%title%"] | 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 | ${question_form_open_form_answer_btn_locator_tpl} = jquery=#tender-question-list .js-item div[data-title*="%title%"] .btn.btn-default | 7 | ${question_form_open_form_answer_btn_locator_tpl} = jquery=#tender-question-list .js-item div[data-title*="%title%"] .btn.btn-default |
7 | ${question_form_open_form_answer_input_locator} = jquery=.fancybox-is-open .fancybox-content #tender-question-answer-form #questionanswerform-answer | 8 | ${question_form_open_form_answer_input_locator} = jquery=.fancybox-is-open .fancybox-content #tender-question-answer-form #questionanswerform-answer |
8 | ${question_form_answer_submit_btn_locator} = jquery=.fancybox-is-open .fancybox-content button.js-submit-btn | 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