def get_fields(self): """Gets the values in the order's fields and returns them in a dictionary.""" return { 'status': int(get_selected_option(self.browser, "select#id_status")), 'customer_id': int(get_selected_option(self.browser, "select#id_customer")), 'product_id': int(get_selected_option(self.browser, "select#id_product")), 'quantity': int(self.browser.find_element_by_css_selector("input#id_quantity").get_attribute('value')), }
def get_fields(self): """Gets the values in the payment fields and returns them in a dictionary.""" return { 'status': int(get_selected_option(self.browser, "select#id_status")), 'order': int(get_selected_option(self.browser, "select#id_order")), 'card_type': get_selected_option(self.browser, "select#id_card_type"), 'card_number': self.browser.find_element_by_css_selector("input#id_card_number").get_attribute("value"), 'expiration_date': self.browser.find_element_by_css_selector("input#id_expiration_date").get_attribute("value"), 'ccv': self.browser.find_element_by_css_selector("input#id_ccv").get_attribute("value"), }
def get_fields(self): """Gets the values in the order's fields and returns them in a dictionary.""" return { 'status': int(get_selected_option(self.browser, "select#id_status")), 'customer_id': int(get_selected_option(self.browser, "select#id_customer")), 'product_id': int(get_selected_option(self.browser, "select#id_product")), 'quantity': int( self.browser.find_element_by_css_selector( "input#id_quantity").get_attribute('value')), }
def get_fields(self): """Gets the values in the payment fields and returns them in a dictionary.""" return { 'status': int(get_selected_option(self.browser, "select#id_status")), 'order': int(get_selected_option(self.browser, "select#id_order")), 'card_type': get_selected_option(self.browser, "select#id_card_type"), 'card_number': self.browser.find_element_by_css_selector( "input#id_card_number").get_attribute("value"), 'expiration_date': self.browser.find_element_by_css_selector( "input#id_expiration_date").get_attribute("value"), 'ccv': self.browser.find_element_by_css_selector( "input#id_ccv").get_attribute("value"), }