Class Tab

  • All Implemented Interfaces:
    org.openqa.selenium.interactions.Locatable, org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement, org.openqa.selenium.WrapsDriver

    public class Tab
    extends DesktopElement
    • Constructor Detail

      • Tab

        public Tab​(org.openqa.selenium.WebElement element)
    • Method Detail

      • selectedTabItem

        public TabItem selectedTabItem()
        The currently selected TabItem.
        Returns:
      • selectedTabItemIndex

        public int selectedTabItemIndex()
        The index of the currently selected TabItem.
        Returns:
      • tabItems

        public List<TabItem> tabItems()
        All TabItem objects from this Tab.
        Returns:
      • selectTabItem

        public TabItem selectTabItem​(int index)
        Selects a TabItem by index.
        Parameters:
        index -
        Returns:
      • selectTabItem

        public TabItem selectTabItem​(String text)
        Selects a TabItem by a give text (name property).
        Parameters:
        text -
        Returns: