Exemplo n.º 1
0
    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()
Exemplo n.º 2
0
    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()