mozilla
Your Search Results

    TabbedBrowsingAPI

    The TabbedBrowsingAPI adds support for accessing and interacting with tab elements.

    Class overview

    Class Description
    tabBrowser This class provides a full set of helper functions to provide access to tab related features.

    Method overview

    closeAllTabs(in MozMillController controller);
    waitForTabPanel(in number tabIndex, in string elemString);

    Methods

    closeAllTabs()

    Close all tabs of the specified browser window and open about:blank in the first tab.

    closeAllTabs(
      in MozMillController controller
    );
    Parameters
    controller
    Mozmill controller of the browser window to operate on.

    waitForTabPanel(tabIndex, elemString)

    Waits for a particular tab panel element (ie. notification bar) to display and stop animating

    waitForTabPanel(
      in number tabIndex,
      in string elemString
    );
    tabIndex
    Number representing the index of the tab to check.
    elemString
    String representing the lookup string of the tab panel element.

    Example:

    // Waits for the Save Password notification bar to appear
    tabBrowser.waitForTabPanel(tabBrowser.selectedIndex, '/{"value":"password-save"}'); 

    Document Tags and Contributors

    Contributors to this page: Whimboo, Ashughes, AaronMT, Sheppy
    Last updated by: Sheppy,