def fill_code(browser, session_vars): session_vars['template_code'] = "Template code" + generators.get_random_digit(3) CreateTemplatePO(browser).waiter().fill_code(session_vars['template_code'])
def input_telephone(self): """Make webdriver set random 'Telephone' value with presetted length.""" self.driver.find_element_by_id("input-telephone").send_keys(get_random_digit(9))
def input_country_code(browser): country_code = "Code" + generators.get_random_digit(4) CreateSubdomainPO(browser).waiter().fill_country_code(country_code)
def input_domain_name(browser, session_vars): session_vars['domain_name'] = "Test" + generators.get_random_digit(5) CreateSubdomainPO(browser).waiter().fill_domain_name( session_vars['domain_name'])
def input_telephone(self): """Make webdriver set random 'Telephone' value with presetted length.""" telephone = self.driver.find_element( *RegistrationPageLocators.TELEPHONE_INPUT_FIELD) telephone.send_keys(get_random_digit(9)) return self
def fill_requirement_desc(browser, session_vars): session_vars[ 'requirement_desc'] = "Requirement desc" + generators.get_random_digit( 5) CreateRequirementsPO(browser).waiter().fill_requirement_desc( session_vars['requirement_desc'])