class Test_home(Test_Base): def test_laptop(self): self.loginpage = LoginPage(self.driver) self.loginpage.click_login(LoginPage.login_button) self.loginpage.input_username(LoginPage.username_text, config_data.username) self.loginpage.input_password(LoginPage.password_text, config_data.password) self.loginpage.click_submit(LoginPage.submit_button) self.homepage = HomePage(self.driver) self.homepage.laptop_click(HomePage.laptop_click_button) self.homepage.laptop_select(HomePage.laptop_select_button)
class Test_Login(Test_Base): def test_login(self): self.loginpage = LoginPage(self.driver) self.loginpage.click_login(LoginPage.login_button) self.loginpage.input_username(LoginPage.username_text,config_data.username) self.loginpage.input_password(LoginPage.password_text,config_data.password) self.loginpage.click_submit(LoginPage.submit_button) def test_title(self): self.loginpage = LoginPage(self.driver) self.loginpage.verify_title(config_data.homepage_title)