def test_oauth_btn(self): login_user = LoginPage(self.driver) home_page = login_user.log_in_with_user('*****@*****.**', 'password') #testing the functionality of the oauth application button on the homepage oauth = HomePage(self.driver) self.driver.implicitly_wait(10) oauth.click_oauthapp_btn() self.driver.implicitly_wait(7) add_title = OuathPage(self.driver) add_title.validate_oauth_page()
def test_cancel_btn(self): login_user = LoginPage(self.driver) home_page = login_user.log_in_with_user('*****@*****.**', 'password') oauth = HomePage(self.driver) self.driver.implicitly_wait(10) oauth.click_oauthapp_btn() add_btn = OuathPage(self.driver) add_btn.click_add_btn() self.driver.implicitly_wait(7) cancel_btn = OuathPage(self.driver) cancel_btn.click_cancel_btn() add_btn.validate_oauth_page()