Exemplo n.º 1
0
    def close_tab(self):
        """Close the current tab and switch to the remaining one.

        Assumes 2 browser tabs are open.
        """
        Utility.close_tab(self.driver)
        return self
Exemplo n.º 2
0
    def close_tab(self) -> TutorShared:
        """Close the current tab and switch to the remaining one.

        Assumes 2 browser tabs are open.

        :return: the page on the previous tab
        :rtype: :py:class:`~pages.tutor.base.TutorShared`

        """
        Utility.close_tab(self.driver)
        return self
Exemplo n.º 3
0
    def close_tab(self):
        """Close the current tab and switch to the remaining one.

        .. note::
           Assumes 2 browser tabs are open; switches the window handle to the
           remaining tab.

        :return: None

        """
        Utility.close_tab(self.driver)