-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yaml
More file actions
280 lines (265 loc) · 10.6 KB
/
config.yaml
File metadata and controls
280 lines (265 loc) · 10.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
# GEM BidPlus automation configuration
base_url: "https://bidplus.gem.gov.in"
debug:
har: true
trace: false
video: false
log_dir: "debug_logs"
artifacts_subdir: "artifacts"
delays:
min_delay: 0.3
max_delay: 0.9
min_action_delay: 0.5
max_action_delay: 1.5
min_typing_delay_ms: 80
max_typing_delay_ms: 220
min_scroll_pause: 0.2
max_scroll_pause: 0.6
timeouts:
page_load_ms: 60000
element_ms: 15000
captcha:
ocr_retries: 5
manual_fallback: true
browser:
viewport_width: 1920
viewport_height: 1080
chrome_channel: "chrome"
headless: false
chrome_profile_dir: ".chrome_profile"
# --- flows: search ---
search:
search_dropdown_selector: "button.searchtype[data-toggle='dropdown'], .input-group-btn button.dropdown-toggle.searchtype"
exact_bid_search_link_selector: "a[onclick*=\"searchType('bid_search')\"], a:has-text('Exact Bid Search')"
search_input_selector: "#searchBid"
search_button_selector: "#searchBidRA, button.search_btn#searchBidRA"
ongoing_bids_filter_selector: "#ongoing_bids"
first_participate_button_selector: ".participateBtn"
first_view_details_selector: "a[href^='/bidding/sellerbid/biddetail/']"
compliance_modal_selector: "#sellerConsent"
compliance_q1_no_selector: "#sell_con_no1"
compliance_q2_no_selector: "#sell_con_no2"
compliance_q3_yes_selector: "#sell_con_yes3"
compliance_save_button_selector: "#sellerConsent .modal-footer button.btn-primary"
# --- flows: login ---
login:
login_id_selector: "#loginid"
captcha_input_selector: "#captcha_math"
captcha_img_selector: "#captcha1"
captcha_refresh_selectors:
- "#change-image"
- "img.captchaImgDisplaySSO"
- "a[id='change-image']"
password_selector: "#password"
generate_otp_button_selector: "#resend"
otp_input_selector: "#otp"
bids_dropdown_selectors:
- "li.dropdown a:has-text('Bids'):visible"
- "a[data-toggle='dropdown']:has-text('Bids'):visible"
- "li.mobilebids.catexp > a:visible"
list_of_bids_selectors:
- "a:has-text('List of Bids'):visible"
- "a[href*='autologin/sbl']:visible"
goto_retries: 10
goto_retry_delay: 3.0
# --- flows: catalogue ---
catalogue:
participate_tech_seller_selector: "div.participateTechseller"
select_catalogue_button_selector: "button.sele-cate, button.select-btns.sele-cate"
save_button_selectors:
- ".saveSpecs"
- "input.saveSpecs"
- "input.btn-primary[value='Save']"
- "input[value='ENCRYPT & SAVE']"
- "input[value*='ENCRYPT']"
- "button.btn-primary:has-text('Save')"
- "button.btn-primary:has-text('ENCRYPT')"
- "#Step1End .saveSpecs"
- "#Step1End input[type='button']"
- ".techSpecs_show .saveSpecs"
- ".techSpecs_show input.btn-primary"
- ".specsDivTP input[type='button'].btn-primary"
save_button_wait_ms: 30000
ajax_response_timeout_ms: 25000
scroll_step_px: 250
scroll_steps_max: 50
loader_selector: "#loaderPopUp"
continue_button_selector: "#continue_button"
# --- flows: offer_price ---
offer_price:
default_offer_price_value: "3.85"
offer_price_input_selectors:
- "table tbody tr td input[type='text']"
- "table tbody tr td input[type='number']"
- "table input[type='text']"
- "table input[type='number']"
- "input[name*='price']"
- "input[name*='offer']"
- "input[name*='bid_price']"
- ".right-content-section table tbody tr td input[type='text']"
- ".right-content-section table input[type='text']"
- ".right-content-section table input[type='number']"
- "form input[type='text'].form-control"
- "input.offprice"
show_estimated_price_text_re: "show\\s+estimated\\s+price"
element_timeout_offer_ms: 15000
offer_price_page_wait_ms: 20000
show_button_after_blur_delay_min: 1.5
show_button_after_blur_delay_max: 3.0
show_button_wait_ms: 10000
show_button_poll_ms: 500
estimated_price_modal_selector: "#showEstPriceModal"
estimated_price_modal_body_selector: "#showEstPriceModal .modal-body.serviceCostEst"
proceed_button_selector: "#showEstPriceModal button.enableSavePrc"
modal_appear_wait_ms: 15000
modal_scroll_delay_min: 0.5
modal_scroll_delay_max: 1.0
encrypt_save_selectors:
- "#saveParticipate"
- ".saveParticipateContainer input.saveParticipate"
- "input[value*='Encrypt'][value*='Save']"
- "input.saveParticipate"
- "button:has-text('Encrypt'), input:has-text('Encrypt')"
encrypt_save_wait_ms: 15000
modal_close_wait_ms: 3000
# --- flows: upload_documents ---
# Order of document_fields MUST match the order of file inputs on the Upload Documents page.
# File resolution: 1) GEM_UPLOAD_DOC_<KEY> or GEM_UPLOAD_DOC_<N>, 2) file from GEM_UPLOAD_DOCUMENTS_DIR with name from document_filename_by_key, 3) GEM_UPLOAD_DOCUMENT_FILE.
upload_documents:
biddoc_url_pattern: "biddoc"
upload_documents_link_selector: "a[href*='biddoc']"
file_input_selectors:
- "input[type='file']"
- "#collapseBuyer input[type='file']"
- ".panel-body input[type='file']"
- "form input[type='file']"
page_wait_ms: 20000
between_uploads_delay_min: 2.0
between_uploads_delay_max: 4.0
file_input_wait_ms: 15000
# Wait until all uploads finish before clicking Save (ms)
wait_before_save_ms: 12000
upload_loader_selector: "#loaderPopUp"
# Same order as on the page (top to bottom)
document_fields:
- { key: experience_criteria, label: "Experience Criteria" }
- { key: bidder_turnover, label: "Bidder Turnover" }
- { key: certificate_atc, label: "Certificate (Requested in ATC)" }
- { key: oem_authorization, label: "OEM Authorization Certificate" }
- { key: oem_annual_turnover, label: "OEM Annual Turnover" }
- { key: statutory_auditor, label: "Statutory Auditor Certificate" }
- { key: project_experience, label: "Project Experience and Certificates with respect to eligibility criteria" }
- { key: registration_certificate, label: "Registration Certificate for Presence in Geographical Location" }
- { key: epf_esi_statements, label: "EPF challans, ESI Challans or Bank Statements indicating the credited EPF or Service Provider had ESI/EPF or Wages" }
- { key: auditor_certificate_profit, label: "Auditor Certificate for profit making entity in last 3 yrs" }
- { key: certificate_incorporation, label: "Copy of certificate for incorporation/registration of bidding entity under appropriate act/authority in India" }
- { key: financial_document, label: "Please Upload Financial Document indicating price break up" }
# Filenames to look for in GEM_UPLOAD_DOCUMENTS_DIR (first match wins). Add your actual file names here.
document_filename_by_key:
experience_criteria: ["Experience Criteria.pdf"]
bidder_turnover: ["Bidder Turnover.pdf"]
certificate_atc: ["Certificate.pdf"]
oem_authorization: ["OEM Authorization Certificate.pdf"]
oem_annual_turnover: ["OEM Annual Turnover.pdf"]
statutory_auditor: ["DIPP.pdf"]
project_experience: ["Experience Criteria.pdf"]
registration_certificate: ["MSME.pdf"]
epf_esi_statements: ["Labour LicencePFEPFESI registration lettercertificate.pdf"]
auditor_certificate_profit: ["DIPP.pdf"]
certificate_incorporation: ["Certificate.pdf"]
financial_document: ["Please Upload Financial Document indicating price break up.pdf"]
mii_yes_selector: "input[name='is_mii_compliance'][value='1']"
mse_yes_selector: "input[name='msmeopt'][value='msmeopt_yes']"
mse_file_input_selector: "#fumsmecer"
# Fallbacks for MSE category certificate file input (id can vary by bid)
mse_file_input_selectors:
- "#fumsmecer"
- "input[type='file'][name*='msme'], input[type='file'][id*='msme']"
emd_yes_selector: "input[name='emdopt'][value='emdopt_yes']"
emd_category_selector: "#emd_category"
emd_option_startup_value: "2"
emd_file_input_selector: "#fuemdcer"
msme_filenames: ["MSME.pdf"]
dipp_filenames: ["DIPP.pdf"]
save_doc_button_selector: "#saveDoc"
save_completion_wait_ms: 35000
# --- flows: emd_epbg ---
emd_epbg:
epbgemd_url_pattern: "epbgemd"
emd_epbg_link_selector: "a[href*='epbgemd']"
save_button_selectors:
- "#saveEpbg"
- "input#saveEpbg"
- "button.saveEpbg"
- "input[type='button'][value='Save']"
- "input[type='submit'][value='Save']"
- "button:has-text('Save')"
- "input.button[value='Save']"
- ".btn-primary:has-text('Save')"
- "input[value='Save']"
# --- flow_detector (Bid Participation sidebar) ---
flow_detector:
flow_order:
- catalogue
- offer_price
- upload_documents
- emd_epbg
- verify_bid
label_to_flow_id:
"Catalogue Offering": catalogue
"Offer Price": offer_price
"Upload Documents": upload_documents
"EMD/EPBG": emd_epbg
"Verify Bid Participation": verify_bid
progress_list_selector: "ul.progress-indicator"
step_item_selector: "ul.progress-indicator li"
step_link_selector: "ul.progress-indicator li a.collaspediv, ul.progress-indicator li > a"
step_active_class: "active"
step_completed_class: "completed"
# --- email (GeM OTP) ---
email:
otp_sender: "noreply@gem.gov.in"
otp_patterns:
- "Your\\s+OTP\\s+for\\s+transaction\\s+on\\s+GeM\\s+is\\s+(\\d{6})"
- "Your\\s+OTP\\s+for\\s+transaction\\s+on\\s+the\\s+Government\\s+e[- ]?Marketplace\\s+is\\s+(\\d{6})"
- "Your\\s+OTP\\s+.{0,200}? is\\s+(\\d{6})(?=[.\\s,]|$)"
# --- flows: verify_bid ---
verify_bid:
seller_verify_url_pattern: "sellerVerify"
verify_link_selector: "a[href*='sellerVerify']"
otp_modal_wait_ms: 35000
otp_input_try_ms: 8000
agree_checkbox_selectors:
- "input[type='checkbox'][id][name]"
- "input[type='checkbox']"
agree_label_text_re: "I\\s+agree\\s+to\\s+the\\s+Terms\\s*&\\s*Conditions|Bid\\s+Participation\\s+Draft\\s+Document"
verify_otp_button_selectors:
- "button:has-text('Verify with OTP')"
- "input[value='Verify with OTP']"
- "a:has-text('Verify with OTP')"
- ".btn:has-text('Verify with OTP')"
otp_modal_container_selectors:
- "#myModal_OTP.in"
- "#myModal_OTP.show"
- "#myModal_OTP"
- ".modal.in"
- ".modal.show"
otp_modal_id: "#myModal_OTP"
otp_modal_input_selectors:
- "#myModal_OTP #otp"
- "#myModal_OTP input[name='otp']"
- "#myModal_OTP input[type='text'][placeholder*='OTP']"
- "#myModal_OTP .modal-body input[type='text']"
- "#otp"
- "input[name='otp']"
otp_modal_submit_selectors:
- "#myModal_OTP input.verifyotp_bid"
- "#myModal_OTP input[value='Verify']"
- "#myModal_OTP input.btn-success[value='Verify']"
- "#myModal_OTP .modal-footer input[type='button']"
- "#myModal_OTP button:has-text('Verify')"
- "#myModal_OTP .modal-footer button"
otp_wrong_check_wait_ms: 8000
# Extra delay after clicking "Verify with OTP" (sec) — time for email OTP to be sent
otp_request_delay_after_click_min: 4.0
otp_request_delay_after_click_max: 7.0