def test_login_valid(self): driver = self.driver driver.get("https://opensource-demo.orangehrmlive.com/") login = LoginPage(driver) login.username("Admin") login.password("admin123") login.login() home_page = HomePage(driver) home_page.welcome() home_page.logout()
def test_login(self): driver = self.driver driver.get("https://opensource-demo.orangehrmlive.com") login = LoginPage(driver) login.enter_username("Admin") login.enter_password("admin123") login.click_login() homepage = HomePage(driver) homepage.click_welcome() homepage.click_logout() time.sleep(5)
def test_verify_homepage_title(self): self.loginpage = LoginPage(self.driver) homePage = self.loginpage.do_login(TestData.USER_NAME, TestData.PASSWORD) title = homePage.get_home_page_title(TestData.HOME_PAGE_TITLE) assert title == TestData.HOME_PAGE_TITLE
def test_verify_setting_icon(self): self.loginpage = LoginPage(self.driver) homePage = self.loginpage.do_login(TestData.USER_NAME, TestData.PASSWORD) assert homePage.is_settings_icon_exits()
def test_verifySignupLink(self): self.loginPage = LoginPage(self.driver) flag = self.loginPage.is_signup_link_exist() assert flag
def test_login(self): self.loginPage = LoginPage(self.driver) self.loginPage.do_login(TestData.USER_NAME, TestData.PASSWORD)
def test_verifyPageTitle(self): self.loginPage = LoginPage(self.driver) title = self.loginPage.get_title(TestData.LOGIN_PAGE_TITLE) assert title == TestData.LOGIN_PAGE_TITLE