Esempio n. 1
0
 def password_input(driver, password):
     """
     Input password to password field
     :param driver: browser web driver
     :param password: user password
     """
     BasePage.send_keys(driver, locator=Locators.password_input_locator, some_keys=password)
Esempio n. 2
0
 def login_input(driver, login):
     """
     Input email address to login field
     :param driver: browser web driver
     :param login: user email address
     """
     BasePage.send_keys(driver, locator=Locators.login_input_locator, some_keys=login)
Esempio n. 3
0
 def input_download_file_name(driver, name):
     """
     Input file name to the Download Name field
     :param driver: browser web driver
     :param name: name for file that we will download
     """
     BasePage.send_keys(driver, Locators.download_name_field_locator, some_keys=name)
Esempio n. 4
0
 def input_product_name_to_filter(driver, product_name):
     """
     Enter product name to the product filter
     :param driver: browser web driver
     :param product_name: product name by that we will filter products
     """
     BasePage.send_keys(driver,
                        locator=Locators.product_name_filter_locator,
                        some_keys=product_name)
Esempio n. 5
0
 def input_model(driver, model):
     """
     Input model to the model field for product that we want to add
     :param driver: browser web driver
     :param model: model of the new product
     """
     BasePage.send_keys(driver,
                        locator=Locators.model_input_field_locator,
                        some_keys=model)
Esempio n. 6
0
 def input_meta_tag(driver, meta_tag):
     """
     Input meta tag for new product
     :param driver: browser web driver
     :param meta_tag: meta tag of product that we want to add
     """
     BasePage.send_keys(driver,
                        locator=Locators.meta_title_locator,
                        some_keys=meta_tag)
Esempio n. 7
0
 def input_product_name(driver, product_name):
     """
     Input product name in add new product menu
     :param driver: browser web driver
     :param product_name: name of the product that we want to add
     """
     BasePage.send_keys(driver,
                        locator=Locators.name_input_field_locator,
                        some_keys=product_name)