示例#1
0
 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"))
示例#2
0
	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()
示例#3
0
	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()