def test_get_details(self): selenium = self.selenium self.login() self.get_details() self.failUnless(selenium.is_element_present("run")) self.failUnless(selenium.is_element_present("reset")) self.failUnless(selenium.is_element_present("update"))
def preconditionLoggedIn(self): '''Logs in member if he is logged out, otherwise do nothing.''' selenium = self.selenium selenium.open("/") selenium.wait_for_page_to_load("30000") hasUsername = selenium.is_element_present("//meta[@name='wrook.username']") if not hasUsername: self.doMemberLogsInWithEmailAddress()
def preconditionLoggedOut(self): '''Logs out the member if he is logged in, otherwise do nothing.''' selenium = self.selenium selenium.open("/") selenium.wait_for_page_to_load("30000") hasUsername = selenium.is_element_present("//meta[@name='wrook.username']") if hasUsername: self.doMemberLogout()