Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
kss.demo.selenium_utils.seleniumtestcase.SeleniumTestCase Class Reference

List of all members.

Public Member Functions

def setUp
def tearDown
def __getattr__
def open
def click
def waitForText
def waitForNotText
def waitForTextPresent
def waitForElementNotPresent
def waitForElementPresent
def waitForValue
def waitForAttribute
def assertText
def assertNotText
def assertValue
def assertElementPresent
def assertElementNotPresent
def pause
def assertTextPresent
def assertTextNotPresent
def assertAttribute
def storeText
def getVar

Public Attributes

 verificationErrors
 selenium
 storedvars

Detailed Description

Definition at line 31 of file seleniumtestcase.py.


Member Function Documentation

Definition at line 42 of file seleniumtestcase.py.

00042 
00043     def __getattr__(self, name):
00044         try:
00045             return getattr(self.__dict__['selenium'], name)
00046         except KeyError:
00047             return super(SeleniumTestCase, self).__getattr__(name)

Here is the caller graph for this function:

Definition at line 106 of file seleniumtestcase.py.

00106 
00107     def assertAttribute(self, target, value):
00108         self.assertEqual(self.selenium.get_attribute(target), value)

Definition at line 94 of file seleniumtestcase.py.

00094 
00095     def assertElementNotPresent(self, target):
00096         self.failIf(self.selenium.is_element_present(target))

Definition at line 91 of file seleniumtestcase.py.

00091 
00092     def assertElementPresent(self, target):
00093         self.failUnless(self.selenium.is_element_present(target))

Definition at line 85 of file seleniumtestcase.py.

00085 
00086     def assertNotText(self, target, text=''):
00087         self.failIfEqual(self.selenium.get_text(target), text)

Definition at line 82 of file seleniumtestcase.py.

00082 
00083     def assertText(self, target, text=''):
00084         self.assertEqual(self.selenium.get_text(target), text)

Definition at line 103 of file seleniumtestcase.py.

00103 
00104     def assertTextNotPresent(self, text):
00105         self.failIf(self.selenium.is_text_present(text))
        

Definition at line 100 of file seleniumtestcase.py.

00100 
00101     def assertTextPresent(self, text):
00102         self.failUnless(self.selenium.is_text_present(text))

def kss.demo.selenium_utils.seleniumtestcase.SeleniumTestCase.assertValue (   self,
  target,
  value = '' 
)

Definition at line 88 of file seleniumtestcase.py.

00088 
00089     def assertValue(self, target, value=''):
00090         self.assertEqual(self.selenium.get_value(target), value)

Definition at line 51 of file seleniumtestcase.py.

00051 
00052     def click(self, target):
00053         self.selenium.click(target)

Definition at line 112 of file seleniumtestcase.py.

00112 
00113     def getVar(self, varname):
00114         return self.storedvars[varname]

Definition at line 48 of file seleniumtestcase.py.

00048 
00049     def open(self, url):
00050         self.selenium.open(url)

Definition at line 97 of file seleniumtestcase.py.

00097 
00098     def pause(self, seconds):
00099         time.sleep(float(seconds)/1000)

Definition at line 32 of file seleniumtestcase.py.

00032 
00033     def setUp(self):
00034         self.verificationErrors = []
00035         self.selenium = selenium("localhost", 4444, browser, target)
00036         self.selenium.start()
00037         self.storedvars = {}

Definition at line 109 of file seleniumtestcase.py.

00109 
00110     def storeText(self, target, varname):
00111         self.storedvars[varname] = self.selenium.get_text(target)

Definition at line 38 of file seleniumtestcase.py.

00038 
00039     def tearDown(self):
00040         self.selenium.stop()
00041         self.assertEqual([], self.verificationErrors)

Definition at line 79 of file seleniumtestcase.py.

00079 
00080     def waitForAttribute(self, target, value):
00081         self.assertEqual(self.selenium.get_attribute(target), value)

Definition at line 67 of file seleniumtestcase.py.

00067 
00068     def waitForElementNotPresent(self, target):
00069         self.failIf(self.selenium.is_element_present(target))

Definition at line 71 of file seleniumtestcase.py.

00071 
00072     def waitForElementPresent(self, target):
00073         self.failUnless(self.selenium.is_element_present(target))

Definition at line 59 of file seleniumtestcase.py.

00059 
00060     def waitForNotText(self, target, text):
00061         self.failIf(text in self.selenium.get_text(target))

Definition at line 55 of file seleniumtestcase.py.

00055 
00056     def waitForText(self, target, text):
00057         self.failUnless(text in self.selenium.get_text(target))

Definition at line 63 of file seleniumtestcase.py.

00063 
00064     def waitForTextPresent(self, text):
00065         self.failUnless(self.selenium.is_text_present(text))

Definition at line 75 of file seleniumtestcase.py.

00075 
00076     def waitForValue(self, target, value):
00077         self.failUnless(self.selenium.get_value(target))


Member Data Documentation

Definition at line 34 of file seleniumtestcase.py.

Definition at line 36 of file seleniumtestcase.py.

Definition at line 33 of file seleniumtestcase.py.


The documentation for this class was generated from the following file: