Package tlib :: Package base :: Module SeleniumTester :: Class SeleniumTester |
[hide private]
[frames] | no frames]

# Class SeleniumTester

source code

                     object --+
                              |
      PytestTester.PytestTester --+
                                  |
    WebDriverTester.WebDriverTester --+
                                      |
                                     SeleniumTester

Instance Methods | [hide private]
webdriver.Remote |
_get_browser(self) Returns Instance of the WebDriver browser | source code
_set_browser(self, browser) Instance of the WebDriver browser | source code
_get_homepage(self) Instance of the WebDriver homepage | source code
_set_homepage(self, homepage) Instance of the WebDriver homepage | source code
initialize_selenium_class(self, browser, request, tlib_logger, initialize_webdriver_class) | source code
setup_selenium_test(self, request, browser, test_logger, setup_webdriver_test) Goes to homepage before each test, unless marker skipsetup is given | source code
navigate(self, page, save_screenshot=True) Navigate to "page" | source code
go_home(self, save_screenshot=True) Navigate to home page | source code
wait_for_page_loaded(self, timeout=10) Waist until document.readyState is equal to complete | source code
Inherited from `WebDriverTester.WebDriverTester`: `get_webelement_by_css`, `get_webelement_by_link_text`, `get_webelement_by_xpath`, `get_webelements_by_css`, `get_webelements_by_xpath`, `initialize_webdriver_class`, `save_screenshot`, `screenshot_folder`, `setup_webdriver_test`, `wait_for_alert`, `wait_for_element_to_be_clickable`, `wait_for_element_to_be_invisible`, `wait_for_element_to_be_present`, `wait_for_element_to_be_selected`, `wait_for_element_to_be_static`, `wait_for_element_to_be_visible`, `wait_for_text_to_be_present_in_element`, `wait_for_text_to_be_present_in_element_value` Inherited from `WebDriverTester.WebDriverTester` (private): `_find_screenshot_folder`, `_get_unused_report_name` Inherited from `PytestTester.PytestTester`: `ignore_windows_GPF_dialog`, `initialize_PytestTester_class`, `log` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__init__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Class Variables | [hide private]
| __metaclass__ = `Singleton`
| _homepage = `None`
Inherited from `WebDriverTester.WebDriverTester` (private): `_driver`, `_folder_dest`, `_jinja_env`, `_request`, `_screenshot_report`, `_screenshot_report_template`, `_screenshots`, `_tc_screenshot_template`, `_test_case_id`, `_test_case_name`, `_test_params` Inherited from `PytestTester.PytestTester`: `test_logger`, `tlib_logger`

Properties | [hide private]
webdriver.Remote | browser Returns Instance of the WebDriver browser
| homepage Instance of the WebDriver homepage
Inherited from `object`: `__class__`

Method Details | [hide private]

### _set_browser(self, browser) | source code
Instance of the WebDriver browser Parameters: `browser` (webdriver.Remote)

### _set_homepage(self, homepage) | source code
Instance of the WebDriver homepage Parameters: `homepage` (webdriver.Remote)

### initialize_selenium_class(self, browser, request, tlib_logger, initialize_webdriver_class) | source code
Parameters: `tlib_logger` (logging) `request` (FixtureRequest) `browser` (webdriver.Remote) Decorators: `@pytest.fixture(scope= 'class', autouse= True)`

### setup_selenium_test(self, request, browser, test_logger, setup_webdriver_test) | source code
Goes to homepage before each test, unless marker skipsetup is given Parameters: `test_logger` (logging) `request` (FixtureRequest) `browser` (webdriver.Remote) Decorators: `@pytest.fixture(scope= 'function', autouse= True)`

### wait_for_page_loaded(self, timeout=10) | source code
Waist until document.readyState is equal to complete Parameters: `timeout` (Integer) - Number of seconds before timing out Overrides: WebDriverTester.WebDriverTester.wait_for_page_loaded

Property Details | [hide private]

### browser Returns Instance of the WebDriver browser Get Method: _get_browser(self) - Returns Instance of the WebDriver browser Set Method: _set_browser(self, browser) - Instance of the WebDriver browser Type: webdriver.Remote

### homepage Instance of the WebDriver homepage Get Method: _get_homepage(self) - Instance of the WebDriver homepage Set Method: _set_homepage(self, homepage) - Instance of the WebDriver homepage