Пример #1
0
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'])
Пример #2
0
 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))
Пример #3
0
def input_country_code(browser):
    country_code = "Code" + generators.get_random_digit(4)
    CreateSubdomainPO(browser).waiter().fill_country_code(country_code)
Пример #4
0
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'])
Пример #5
0
 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
Пример #6
0
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'])