Beispiel #1
0
 def update_prof(self):
     self.click_on_elem(self.update_prof_btn)
     try:
         self.wait_until_located(Loaders(self.browser).loaderBank, 'css')
     except:
         pass
     self.wait_until_disappear(Loaders(self.browser).loaderBank, 'css', 40)
Beispiel #2
0
 def change_status(self, new_status):
     self.click_on_elem(self.change_status_select)
     status_selector = '//option[text()[contains(.,"' + new_status + '")]]'
     self.click_on_elem(status_selector)
     alert_obj = self.browser.switch_to.alert
     alert_obj.accept()
     loaders = Loaders(self.browser)
     loaders.wait_until_bank_loader_disappear(40)
 def open_bid_use_filter(self, bid_id):
     self.wait_until_located(self.bid_number_filter, 'css')
     bid_field = self.find_element_by_locator(self.bid_number_filter)
     bid_field.send_keys(bid_id)
     bid_field.send_keys(Keys.ENTER)
     bid_elem = '//b[text()[contains(.,"' + bid_id + '")]]/../..'
     Loaders(self.browser).wait_until_agent_loader_disappear()
     self.click_on_elem(bid_elem)
     agent_questionnaire = AgentQuestionnaire(self.browser)
     return agent_questionnaire
 def fill_required_fields_client(self,
                                 bid: Bid,
                                 client: Client,
                                 group=False):
     self.fill_field_and_check_value_click_on_focus(self.inn, client.inn,
                                                    self.page_title,
                                                    'xpath')
     Loaders(self.browser).wait_until_agent_loader_disappear()
     self.fill_field_and_check_value_click_on_focus(self.contract_number,
                                                    bid.number,
                                                    self.page_title)
     Loaders(self.browser).wait_until_agent_loader_disappear()
     self.fill_field_and_check_value_click_on_focus(self.contract_price,
                                                    bid.final_price,
                                                    self.page_title)
     self.select_type(bid.type)
     if not group:
         self.fill_field_and_check_value_click_on_focus(
             self.date_finish, bid.date_finish, self.page_title)
 def load_ip_usual_docs(self, filename):
     file_path = Base().get_file_dir('files', filename)
     DocsPage(self.browser).load_doc(self.anketa, file_path)
     DocsPage(self.browser).load_doc(self.buh, file_path)
     DocsPage(self.browser).load_doc(self.locate_fact, file_path)
     DocsPage(self.browser).load_doc(self.passport, file_path)
     DocsPage(self.browser).load_doc(self.tax, file_path)
     self.wait_until_clickable(self.transfer_to_bank_btn, 'xpath')
     self.click_on_elem(self.transfer_to_bank_btn)
     self.wait_until_disappear(self.transfer_to_bank_btn, 'xpath')
     Loaders(self.browser).wait_until_agent_loader_disappear()
 def check_open(self):
     self.wait_until_located(self.accept_btn, locator_type='xpath')
     Loaders(self.browser).wait_until_agent_loader_disappear()
 def submit(self, time=50):
     self.wait_until_clickable(self.submit_btn, 'xpath')
     self.click_on_elem(self.submit_btn)
     Loaders(self.browser).wait_until_agent_loader_disappear(time)
Beispiel #8
0
 def create_bki_report(self):
     good_result = '//span[text()[contains(.,"Просрочек не обнаружено")]]'
     self.click_on_elem(self.create_bki_report_btn)
     loaders = Loaders(self.browser)
     loaders.wait_until_bank_loader_disappear(70)
     self.find_element_by_locator(good_result)
Beispiel #9
0
 def check_open(self):
     self.wait_until_located(self.choose_sign_select, 'xpath')
     Loaders(self.browser).wait_until_bank_loader_disappear(10)
Beispiel #10
0
 def check_open(self):
     self.wait_until_located(self.bank_btn, 'css')
     Loaders(self.browser).wait_until_bank_loader_disappear(10)
Beispiel #11
0
 def generate_doc_by_name(self, doc_name):
     self.click_on_elem(self.get_generate_btn_locator(doc_name))
     self.check_download_locator(doc_name)
     self.wait_until_disappear(Loaders(self.browser).loaderBank, 'css')
Beispiel #12
0
 def check_calculated(self):
     self.find_elements_by_locator(self.tbody)
     Loaders(self.browser).wait_until_bank_loader_disappear()