def test_signin_16(self): signin = SignIn(self.driver) # Click "Sign in" button signin.click_signin_button() time.sleep(1) # Click on "Sign in with Facebook" button signin.click_signin_facebook() time.sleep(1) # Switch to second tab in the list signin.switch_second_tab() # Verify if window was opened in a new tab and is asking you to login to your facebook account element = self.driver.find_element_by_xpath(SignIn.verify_signin_fb) assert element.is_displayed()
def test_signin_17(self): signin = SignIn(self.driver) # Click "Sign in" button signin.click_signin_button() time.sleep(1) # Click on "Sign in with Google" signin.click_signin_google() time.sleep(1) # Switch to second tab in the list signin.switch_second_tab() # Verify if window was opened in a new tab and is asking you to sign in with your Google account element = self.driver.find_element_by_xpath( SignIn.verify_signin_google) assert element.is_displayed()