Package omeroweb :: Package webgateway :: Package tests :: Module seleniumbase :: Class SeleniumTestBase
[hide private]
[frames] | no frames]

Class SeleniumTestBase

source code


The base class for selenium tests.

All tests will have the self.selenium attr with a selenium client ready for usage.

Nested Classes [hide private]

Inherited from unittest.TestCase: failureException

Instance Methods [hide private]
 
setUp(self)
Hook method for setting up the test fixture before exercising it.
source code
 
waitForElementPresence(self, element, present=True)
Waits for 60 seconds for a particular element to be present (or not).
source code
 
waitForElementVisibility(self, element, visible)
Waits for 60 seconds for a particular element to be visible (or not).
source code
 
tearDown(self)
Hook method for deconstructing the test fixture after testing it.
source code

Inherited from unittest.TestCase: __call__, __eq__, __hash__, __init__, __ne__, __repr__, __str__, assertAlmostEqual, assertAlmostEquals, assertEqual, assertEquals, assertFalse, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertRaises, assertTrue, assert_, countTestCases, debug, defaultTestResult, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, shortDescription

Inherited from unittest.TestCase (private): _exc_info

Class Variables [hide private]
  SERVER = None
hash(x)
Method Details [hide private]

setUp(self)

source code 

Hook method for setting up the test fixture before exercising it.

Overrides: unittest.TestCase.setUp
(inherited documentation)

waitForElementPresence(self, element, present=True)

source code 

Waits for 60 seconds for a particular element to be present (or not). Also exits if an alert box comes up.

tearDown(self)

source code 

Hook method for deconstructing the test fixture after testing it.

Overrides: unittest.TestCase.tearDown
(inherited documentation)