public class TabsElement extends TestBenchElement
<vaadin-tabs>
element.Constructor and Description |
---|
TabsElement() |
Modifier and Type | Method and Description |
---|---|
TabElement |
getSelectedTabElement()
Gets the tab element for the currently selected tab.
|
int |
getSelectedTabIndex()
Gets the index of the currently selected tab.
|
int |
getTab(String text)
Gets the index of the tab with the given text.
|
TabElement |
getTabElement(String text)
Gets the tab element for the tab with the given text.
|
void |
setSelectedTabIndex(int selectedTab)
Selects the tab with the given index.
|
callFunction, clear, click, click, compareScreen, compareScreen, compareScreen, contextClick, dispatchEvent, doubleClick, equals, executeScript, findElement, findElements, focus, getAttribute, getCapabilities, getClassNames, getCommandExecutor, getContext, getCssValue, getDriver, getLocation, getProperty, getPropertyBoolean, getPropertyDouble, getPropertyElement, getPropertyElements, getPropertyInteger, getPropertyString, getRect, getScreenshotAs, getSize, getTagName, getText, getWrappedElement, hasAttribute, hasClassName, hashCode, init, init, isChrome, isDisplayed, isEnabled, isFirefox, isIE, isSelected, scroll, scrollIntoView, scrollLeft, sendKeys, setProperty, setProperty, setProperty, setProperty, submit, waitForVaadin, waitUntil, waitUntil, wrap, wrapElement, wrapElements
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
$, $
public void setSelectedTabIndex(int selectedTab)
selectedTab
- the index of the tab to selectpublic int getSelectedTabIndex()
public TabElement getSelectedTabElement()
public TabElement getTabElement(String text) throws org.openqa.selenium.NoSuchElementException
text
- the text to look for in the tabsorg.openqa.selenium.NoSuchElementException
- if no match was foundpublic int getTab(String text)
text
- the text to look for in the tabsCopyright © 2019. All rights reserved.