def test_b_LoginLogout(self): try: #try to signin setup_login.fischer_login(self.driver, "sls1231") except: #login failed, lets take a screenshot #TODO: Screenshot #Fail the test assert 2 == 1 dashboard_navigate.gotoRequestAccess(self.driver) dashboard_navigate.selectIncludeSelf(self.driver) dashboard_navigate.selectDropdownOption(self.driver, "Official website") dashboard_navigate.selectDropdownOption(self.driver, "Create website") time.sleep(10) try: #try to signout setup_login.fischer_logout(self.driver) except: #logout failed, lets take a screenshot #TODO: Screenshot #Fail the test assert 2 == 1
def tearDown(self): #log out setup_login.fischer_logout(self.driver) # close the browser window self.driver.quit()