Пример #1
0
    def inputPassword(self, inputPassword):
        uiHelper = UiHelper(self.driver)
        uiHelper.waitVisibleElementByID(self.elements["password"])
        uiHelper.elementIsClickableByID(self.elements["password"])

        self.driver.find_element_by_id(self.elements["password"]).clear()
        self.driver.find_element_by_id(self.elements["password"]).send_keys(inputPassword)
Пример #2
0
    def inputUserName(self, inputUsername):
        uiHelper = UiHelper(self.driver)
        uiHelper.waitVisibleElementByID(self.elements["userName"])
        uiHelper.elementIsClickableByID(self.elements["userName"])

        self.driver.find_element_by_id(self.elements["userName"]).clear()
        self.driver.find_element_by_id(self.elements["userName"]).send_keys(inputUsername)