def get_editor_element(self):
        # <div> id like "^code-editor-opener:.*$"
        main_content = self.find_it(UI.get_theia_main_content_panel_locator())

        eds = self.find_them(UI.get_theia_dock_panel_widgets_locator(),
                             parent=main_content)

        for ed in eds:
            classes = ed.get_attribute(constants.TYPE_CLASS)
            if constants.THEIA_HIDDEN not in classes:
                highlight(ed, effect_time=1)
                return ed
    def wait_for_tab_exist(self, tab_text):

        main_content = self.find_it(UI.get_theia_main_content_panel_locator())
        tab_container = self.find_it(UI.get_tab_content_locator(),
                                     parent=main_content)
        tabs = self.find_them(UI.get_tabs_locator(), parent=tab_container)

        for tab in tabs:
            if tab.text == tab_text:
                return tab

        raise WebDriverException
    def get_active_tab_element(self):
        # <li> id like "^shell-tab-code-editor-opener:.*$"
        main_content = self.find_it(UI.get_theia_main_content_panel_locator())
        tab_container = self.find_it(UI.get_tab_content_locator(),
                                     parent=main_content)
        tabs = self.find_them(UI.get_tabs_locator(), parent=tab_container)

        for tab in tabs:
            if constants.THEIA_CURRENT_TAB in tab.get_attribute(
                    constants.TYPE_CLASS):
                return tab

        return None