def run_all_purchase_list(from_date, to_date, new=True): if new: navigation.to_purchase_list() window.drag_window() send = SendData() send.send(from_date) send.send('{enter}') send.send(to_date) send.send('{enter}') send.send('{DOWN}') send.send('{F11}') send.send('n') send.send('screen') send.send('{enter}') for i in range(12): ## print("Try " + str(i)) screen = parse.process_scene(window.get_window()) if parse.identify_screen(screen, 'Inkoop advies avc', 1): return window.get_window() time.sleep(0.1)
def run_purchase_list(from_date, to_date,supplier, new = True): if new: navigation.to_purchase_list() drag_window() send = SendData() send.send(from_date) send.send('{enter}') send.send(to_date) send.send('{enter}') send.send('{DOWN}') send.send(supplier) send.send('{enter}') send.send('{F11}') send.send('n') send.send('screen') send.send('{enter}') for i in range(15): screen = parse.process_scene(get_window()) if parse.identify_screen(screen,'Inkoop advies avc',1): return get_window() time.sleep(0.1)
def go_to_puchase_list(system='f2_canada_real'): traverse.main_menu(system) for i in range(10): if navigation.to_purchase_list(): return True return False
def test_navigation_purchase_list(self): navigation.to_purchase_list() screen = parse.process_scene(window.get_window()) self.assertTrue(parse.identify_screen(screen, 'Advanced'))
def go_to_puchase_list(): for i in range(10): print(i) if navigation.to_purchase_list(): return True return False