def fill_out_tax_rate(self, taxRate): self.driver.find_element_by_xpath(CreateInvoicePageLocators.get_invoice_form_table_data(8)).click() self.driver.find_element_by_id(CreateInvoicePageLocators.get_form_tax_rate_locator()).clear() self.driver.find_element_by_id(CreateInvoicePageLocators.get_form_tax_rate_locator()).send_keys(taxRate)
def fill_out_account(self, account): self.driver.find_element_by_xpath(CreateInvoicePageLocators.get_invoice_form_table_data(7)).click() self.driver.find_element_by_id(CreateInvoicePageLocators.get_form_account_locator()).clear() self.driver.find_element_by_id(CreateInvoicePageLocators.get_form_account_locator()).send_keys(account)
def fill_out_quantity(self, quantity): self.driver.find_element_by_xpath(CreateInvoicePageLocators.get_invoice_form_table_data(4)).click() self.driver.find_element_by_id(CreateInvoicePageLocators.get_form_quantity_locator()).clear() self.driver.find_element_by_id(CreateInvoicePageLocators.get_form_quantity_locator()).send_keys(quantity)
def fill_out_unitprice(self, unitprice): self.driver.find_element_by_xpath(CreateInvoicePageLocators.get_invoice_form_table_data(5)).click() self.driver.find_element_by_id(CreateInvoicePageLocators.get_form_unitprice_locator()).clear() self.driver.find_element_by_id(CreateInvoicePageLocators.get_form_unitprice_locator()).send_keys(unitprice)
def fill_out_description(self, description): self.driver.find_element_by_xpath(CreateInvoicePageLocators.get_invoice_form_table_data(3)).click() self.driver.find_element_by_id(CreateInvoicePageLocators.get_form_description_locator()).clear() self.driver.find_element_by_id(CreateInvoicePageLocators.get_form_description_locator()).send_keys(description)