Commit 8e16c6d60a982dc6230969a9bfbcb9381e831626
1 parent
db1289c4
bid features
funders form-is_multilot
Showing
3 changed files
with
18 additions
and
11 deletions
... | ... | @@ -36,10 +36,12 @@ fill bid form lots |
36 | 36 | \ Run Keyword And Ignore Error run keyword if condition is not none ${lots} input number to exist visible input ${bid_form_value_amount_input_locator} ${lots[${INDEX}].value.amount} |
37 | 37 | \ capture page screenshot |
38 | 38 | \ ${self_qualified} = get from dictionary by keys ${bid.data} selfQualified |
39 | - \ run keyword if condition is not none ${self_qualified} click visible element ${bid_form_value_self_qualified_input_locator} | |
39 | +# \ run keyword if condition is not none ${self_qualified} click visible element ${bid_form_value_self_qualified_input_locator} | |
40 | + \ run keyword if condition is not none ${self_qualified} execute javascript $('.fancybox-is-open .fancybox-content input[id*="-self_qualified"]').click() | |
40 | 41 | \ capture page screenshot |
41 | 42 | \ ${self_eligible} = get from dictionary by keys ${bid.data} selfEligible |
42 | - \ run keyword if condition is not none ${self_eligible} click visible element ${bid_form_value_self_eligible_input_locator} | |
43 | +# \ run keyword if condition is not none ${self_eligible} click visible element ${bid_form_value_self_eligible_input_locator} | |
44 | + \ run keyword if condition is not none ${self_eligible} execute javascript $('.fancybox-is-open .fancybox-content input[id*="-self_eligible"]').click() | |
43 | 45 | \ capture page screenshot |
44 | 46 | \ ${feature_id} = get from dictionary by keys ${bid.data} parameters |
45 | 47 | \ run keyword if condition is not none ${feature_id} fill bid form features ${feature_id} |
... | ... | @@ -54,17 +56,20 @@ fill bid form features |
54 | 56 | ${features_length} = Get Length ${bid_parameters} |
55 | 57 | : FOR ${INDEX} IN RANGE 0 ${features_length} |
56 | 58 | \ ${bid_form_feature_input_locator} replace string ${bid_form_feature_input_locator_tpl} %title% ${bid_parameters[${INDEX}]['code']} |
59 | + \ ${bid_form_get_feature_input_locator} replace string ${bid_form_get_feature_input_locator_tpl} %title% ${bid_parameters[${INDEX}]['code']} | |
60 | + \ ${bid_form_feature_input_locator_select} replace string ${bid_form_feature_input_locator_select_tpl} %title% ${bid_parameters[${INDEX}]['code']} | |
57 | 61 | \ ${value_enum} = convert float to string ${bid_parameters[${INDEX}]['value']} |
58 | 62 | \ ${bid_form_feature_value_input_locator} set variable ${bid_form_feature_input_locator} ${bid_form_feature_value_input_locator_tpl} |
63 | + \ ${bid_form_get_feature_value_input_locator} set variable ${bid_form_get_feature_input_locator} ${bid_form_get_feature_value_input_locator_tpl} | |
59 | 64 | \ ${bid_form_feature_value_input_locator} replace string ${bid_form_feature_value_input_locator} _ ' ' |
60 | - #\ ${bid_form_feature_value_input_locator} replace string ${bid_form_feature_value_input_locator} %value% ${bid_parameters[${INDEX}]['value']} | |
65 | + \ ${bid_form_get_feature_value_input_locator} replace string ${bid_form_get_feature_value_input_locator} _ ' ' | |
61 | 66 | \ ${bid_form_feature_value_input_locator} replace string ${bid_form_feature_value_input_locator} %value% ${value_enum} |
62 | - \ Run Keyword And Ignore Error click visible element ${bid_form_feature_input_locator} | |
67 | + \ ${bid_form_get_feature_value_input_locator} replace string ${bid_form_get_feature_value_input_locator} %value% ${value_enum} | |
68 | + \ ${enum_val} set variable ${bid_form_get_feature_value_input_locator} | |
69 | + \ ${enum_val1}= run keyword if ${bid_parameters[${INDEX}]['value']} == 0 Execute Javascript return $('[data-weight-source="0"]').text() | |
70 | + \ ... ELSE Execute Javascript ${enum_val} | |
63 | 71 | \ capture page screenshot |
64 | - \ Run Keyword And Ignore Error click visible element ${bid_form_feature_value_input_locator} | |
65 | - \ capture page screenshot | |
66 | - \ Run Keyword And Ignore Error click visible element jquery=select.select2-hidden-accessible:nth(${INDEX}) [data-weight-source="0"] | |
67 | - #\ Run Keyword And Ignore Error click visible element ${select.select2-hidden-accessible:nth(${INDEX}) [data-weight-source="0"]} | |
72 | + \ Run Keyword And Ignore Error select from list by label ${bid_form_feature_input_locator_select} ${enum_val1} | |
68 | 73 | \ capture page screenshot |
69 | 74 | |
70 | 75 | fill bid form lots Esco | ... | ... |
... | ... | @@ -7,9 +7,11 @@ ${bid_form_submit_success_msg} = Пропоз |
7 | 7 | ${bid_form_submit_edit_success_msg} = Пропозиція відредагована |
8 | 8 | ${bid_form_submit_remove_success_msg} = Ви впевнені що бажаєте видали свою пропозицію? |
9 | 9 | ${alert_opened_close_bid_btn_locator} = jquery=.animated-content .js-btn-confirm |
10 | -${bid_form_feature_input_locator_tpl} = jquery=.fancybox-is-open .fancybox-content select[id*="%title%-enum"] | |
10 | +${bid_form_feature_input_locator_select_tpl} = jquery=[data-opid*="%title%"] | |
11 | +${bid_form_get_feature_input_locator_tpl} = return $('.fancybox-is-open .fancybox-content [data-opid*="%title%"] | |
12 | +${bid_form_get_feature_value_input_locator_tpl} = option[data-weight-source*="%value%"]').text() | |
13 | +${bid_form_feature_input_locator_tpl} = jquery=.fancybox-is-open .fancybox-content [data-opid*="%title%"] | |
11 | 14 | ${bid_form_feature_value_input_locator_tpl} = option[data-weight-source*="%value%"] |
12 | -#${bid_form_feature_value_input_locator_tpl} = jquery=.fancybox-is-open .fancybox-content select[id*="%title%-enum"] option[data-weight-source*="%value%"] | |
13 | 15 | ${bid_form_value_amount_input_locator} = jquery=.fancybox-is-open .fancybox-content input[id*="-value_amount"] |
14 | 16 | ${bid_form_value_subcontracting_details_input_locator} = jquery=.fancybox-is-open .fancybox-content textarea[id*="-subcontracting_details"] |
15 | 17 | ${bid_form_value_self_eligible_input_locator} = jquery=.fancybox-is-open .fancybox-content input[id*="-self_eligible"] | ... | ... |
... | ... | @@ -95,7 +95,7 @@ fill tender general info |
95 | 95 | wait until page does not contain element ${tender_load_form_after_mode_locator} |
96 | 96 | |
97 | 97 | ${lots} = get from dictionary by keys ${data} lots |
98 | - run keyword if condition is not none ${lots} Run Keyword And Ignore Error Click Element ${tender_multilot_locator} | |
98 | + run keyword if condition is not none ${lots} Run Keyword And Ignore Error Execute Javascript $('[id$="form-is_multilot"]').click() | |
99 | 99 | wait until page does not contain element ${tender_load_form_after_mode_locator} 20 |
100 | 100 | |
101 | 101 | open popup by btn locator ${plan_form_general_panel_edit_btn_locator} | ... | ... |
Please
register
or
login
to post a comment