univention.testing.selenium package¶
-
class
univention.testing.selenium.
UMCSeleniumTest
(language='en', host=None, suppress_notifications=True, suppress_welcome_dialog=True)[source]¶ Bases:
univention.testing.selenium.checks_and_waits.ChecksAndWaits
,univention.testing.selenium.interactions.Interactions
This class provides selenium test for web UI tests. Default browser is Firefox. Set local variable UCSTEST_SELENIUM_BROWSER to ‘chrome’ or ‘ie’ to switch browser. Tests run on selenium grid server. To run tests locally use local variable UCSTEST_SELENIUM=local. Root privileges are required, also root needs the privilege to display the browser.
-
BROWSERS
= {'chrome': 'chrome', 'firefox': 'firefox', 'ie': 'internet explorer', 'ff': 'firefox', 'chromium': 'chrome'}¶
-
Submodules¶
univention.testing.selenium.appcenter module¶
univention.testing.selenium.base module¶
-
class
univention.testing.selenium.base.
UMCSeleniumTest
(language='en', host=None, suppress_notifications=True, suppress_welcome_dialog=True)[source]¶ Bases:
univention.testing.selenium.checks_and_waits.ChecksAndWaits
,univention.testing.selenium.interactions.Interactions
This class provides selenium test for web UI tests. Default browser is Firefox. Set local variable UCSTEST_SELENIUM_BROWSER to ‘chrome’ or ‘ie’ to switch browser. Tests run on selenium grid server. To run tests locally use local variable UCSTEST_SELENIUM=local. Root privileges are required, also root needs the privilege to display the browser.
-
BROWSERS
= {'chrome': 'chrome', 'firefox': 'firefox', 'ie': 'internet explorer', 'ff': 'firefox', 'chromium': 'chrome'}¶
-
save_screenshot
(name='error', hide_notifications=True, xpath='/html/body', append_timestamp=False)[source]¶
-
univention.testing.selenium.checks_and_waits module¶
univention.testing.selenium.interactions module¶
-
class
univention.testing.selenium.interactions.
Interactions
[source]¶ Bases:
object
-
click_element
(xpath, scroll_into_view=False, timeout=60)[source]¶ Click on the element which is found by the given xpath.
Only use with caution when there are multiple elements with that xpath. Waits for the element to be clickable before attempting to click.
-
enter_input
(inputname, inputvalue)[source]¶ Enter inputvalue into an input-element with the tag inputname.
-
upload_image
(img_path, timeout=60, xpath_prefix='')[source]¶ Get an ImageUploader widget on screen and upload the given img_path. Which ImageUploader widget is found can be isolated by specifying ‘xpath_prefix’ which would be an xpath pointing to a specific container/section etc.
-
univention.testing.selenium.udm module¶
-
class
univention.testing.selenium.udm.
Portals
(selenium)[source]¶ Bases:
univention.testing.selenium.udm.UDMBase
-
name
= 'Portal settings'¶
-
-
class
univention.testing.selenium.udm.
Computers
(selenium)[source]¶ Bases:
univention.testing.selenium.udm.UDMBase
-
name
= 'Computers'¶
-
-
class
univention.testing.selenium.udm.
Groups
(selenium)[source]¶ Bases:
univention.testing.selenium.udm.UDMBase
-
name
= 'Groups'¶
-
-
class
univention.testing.selenium.udm.
Policies
(selenium)[source]¶ Bases:
univention.testing.selenium.udm.UDMBase
-
name
= 'Policies'¶
-
-
class
univention.testing.selenium.udm.
Users
(selenium)[source]¶ Bases:
univention.testing.selenium.udm.UDMBase
-
name
= 'Users'¶
-