def test_login_invalid(self): driver = self.driver driver.get('https://www.tintup.com') driver.find_element_by_id('login').click() driver.find_element_by_tag_name('h2') login = Loginpage(driver) login.enter_username("*****@*****.**") login.enter_password("Welcome123") login.click_login() time.sleep(5) element = driver.find_element_by_id('flash_alert') print(element.text)
def test_login_valid(self): driver = self.driver driver.get('https://www.tintup.com') driver.find_element_by_id('login').click() driver.find_element_by_tag_name('h2') login = Loginpage(driver) login.enter_username("*****@*****.**") login.enter_password("welcome") login.click_login() homePage = Homepage(driver) homePage.click_settings_dropdown() homePage.click_logout() time.sleep(2)
def add_tint(self): driver = self.driver driver.get('https://www.tintup.com') driver.find_element_by_id('login').click() driver.find_element_by_tag_name('h2') login = Loginpage(driver) login.enter_username("*****@*****.**") login.enter_password("welcome") login.click_login() time.sleep(5) addtint = Addtint(driver) addtint.click_addtint() addtint.add_tint_name("autotest4") addtint.create_tint() addtint.skip_to_tinteditor() time.sleep(5) addtint.click_networks() addtint.connect_youtube() addtint.enter_youtube_username("ucla") addtint.add_youtube() time.sleep(5)