from selenium_common.base_page_object import BasePageObject
from selenium.common.exceptions import NoSuchElementException


class AccountAdminBasePage(BasePageObject):
    """
    This is the base page object class that all account admin  pages can inherit from
    Locators and Services would be common to all pages on  this tool
    """
    def __init__(self, driver):
        super(AccountAdminBasePage, self).__init__(driver)
        try:
            self._driver.switch_to.frame(self._driver.find_element_by_id("tool_content"))
        except NoSuchElementException:
            pass
