Exemplo n.º 1
0
	def fill_out_new_invoice(self):
		"""
		Fill out that massive, clunky table!
		Observe that .clear() can also be used for
		UPDATE operations.
		"""
		assert 'Xero | New Repeating Invoice' in self.driver.title

		count = self.driver.find_elements(By.XPATH, CreateInvoicePageLocators.get_paid_to_locator_regex())
		count[2].send_keys('Sherlock Holmes') # count[1] points to the label field!

		newForm = FillNewInvoiceForm(self.driver)
		newForm.fill_out_options_schedule('1')
		newForm.fill_out_description('The Hound of Baskervilles')
		newForm.fill_out_quantity('23.0000')
		newForm.fill_out_unitprice('99.0000')
		newForm.fill_out_account('200 - Sales')
		newForm.fill_out_tax_rate('15% GST on Income')