Commit 956b4e9d609f6da63b578a29dfce1aa7183a1c16
1 parent
edc2a81f
Execute Javascript question_open_form_answer_js_btn_locator
Showing
2 changed files
with
4 additions
and
3 deletions
| @@ -41,8 +41,9 @@ answer question | @@ -41,8 +41,9 @@ answer question | ||
| 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 | ${question_open_form_answer_js_btn_locator} = replace string ${question_open_form_answer_js_btn_locator_tpl} %title% ${question_id} | 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} | 43 | # open popup by btn locator ${question_form_open_form_answer_btn_locator} |
| 44 | - Execute Javascript ${question_open_form_answer_js_btn_locator} | ||
| 45 | - sleep 30 | 44 | +# sleep 300 |
| 45 | +# Execute Javascript ${question_open_form_answer_js_btn_locator} | ||
| 46 | + execute javascript ${question_open_form_answer_js_btn_locator} | ||
| 46 | input text to exist visible input ${question_form_open_form_answer_input_locator} ${answer_data.data.answer} | 47 | input text to exist visible input ${question_form_open_form_answer_input_locator} ${answer_data.data.answer} |
| 47 | submit form and check result ${question_form_answer_submit_btn_locator} ${question_form_submit_answer_success_msg} ${tender_created_checker_element_locator} | 48 | submit form and check result ${question_form_answer_submit_btn_locator} ${question_form_submit_answer_success_msg} ${tender_created_checker_element_locator} |
| 48 | 49 |
| @@ -3,7 +3,7 @@ | @@ -3,7 +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_open_form_answer_js_btn_locator_tpl} = $('#tender-question-list .js-item div[data-title*="%title%"] .btn.btn-default').click() |
| 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_btn_locator_tpl} = jquery=#tender-question-list .js-item div[data-title*="%title%"] .btn.btn-default |
| 8 | ${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 |
| 9 | ${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