def a_username_username_and_password_click_submit_button( driver, username, password): """a username <username> and <password> click submit button.""" time.sleep(1) loginpage = pages.Loginpage(driver) loginpage.enter_username(username=username) loginpage.enter_password(password=password) loginpage.submit()
def inventory_check(driver, username, password): inventory_verify = pages.Inventorypage(driver) inventory_verify.switch_to_adminstrator() loginpage = pages.Loginpage(driver) loginpage.enter_logindetails(username, password) menu = pages.Menupage(driver) time.sleep(1) menu.humberger_menu() menu.inventory_menu() inventory_verify.reporting() inventory_verify.inventory() inventory_verify.current_inventory() time.sleep(0.8) inventory_verify.filter() inventory_verify.click_filter() inventory_verify.click_filter_advance() inventory_verify.select_product() inventory_verify.quantity()
def retail_manager(cache, driver, scannedbill, usernameRetail, password): loginpage = pages.Loginpage(driver) loginpage.enter_logindetails(usernameRetail, password) menu = pages.Menupage(driver) menu.humberger_menu() menu.purchase_menu() purchasepage = pages.Purchasepage(driver) purchasepage.sub_menu_purchase() purchasepage.sub_menu_purchaseorder() time.sleep(1) purchasepage.filter_remove() po_number = cache['po_number'] time.sleep(0.5) purchasepage.check_box(po_number) purchasepage.receive_product() purchasepage.vendor_bill(scannedbill) purchasepage.receive_product_bill() purchasepage.scan_package() purchasepage.barcode() purchasepage.confirm() time.sleep(10)
def a_username_username_and_password_click_submit_button(driver): """a username <username> and <password> click submit button.""" loginpage = pages.Loginpage(driver) loginpage.enter_logindetails() manufacture = pages.Manufacturepage(driver) manufacture.humbergermenu() manufacture.manufacture_app() manufacture.create() manufacture.product() manufacture.quantitytoproduce() manufacture.save() manufacture.create_workspace() manufacture.workspace() manufacture.package() manufacture.startworking() manufacture.edit() manufacture.totaltield() manufacture.lot_servial() manufacture.barcode() manufacture.enter_weight() manufacture.save_product() manufacture.done() manufacture.clickmo() manufacture.click_workorder() manufacture.click_package2() manufacture.start_working() manufacture.edit() manufacture.barcode() manufacture.wight() manufacture.save1() manufacture.done() manufacture.manufacturing_order() manufacture.link_one() manufacture.mark_as_done() inventoryadjustment = pages.InventroyAdjustmentpage(driver) inventoryadjustment.inventory_adjustment()
def a_username_username_and_password_click_submit_button(driver): """a username <username> and <password> click submit button.""" loginpage = pages.Loginpage(driver) loginpage.enter_logindetails()