public class SpreadsheetElement
extends com.vaadin.testbench.elementsbase.AbstractElement
| Modifier and Type | Class and Description |
|---|---|
static class |
SpreadsheetElement.ContextMenuElement |
| Constructor and Description |
|---|
SpreadsheetElement() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSheet()
Adds a new sheet.
|
com.vaadin.testbench.TestBenchElement |
getAddressField()
Gets the address field.
|
SheetCellElement |
getCellAt(int row,
int column)
Gets the cell element at the given coordinates for the currently active
sheet.
|
SheetCellElement |
getCellAt(String cellAddress)
Gets the cell element at the given cell address for the currently active
sheet.
|
org.openqa.selenium.WebElement |
getCellValueInput() |
SheetHeaderElement |
getColumnHeader(int columnIndex)
Gets the column header element at the given index.
|
SpreadsheetElement.ContextMenuElement |
getContextMenu()
Fetches the context menu for the spreadsheet
|
com.vaadin.testbench.TestBenchElement |
getFormulaField()
Gets the formula field.
|
com.vaadin.testbench.TestBenchElement |
getInfoLabel()
Gets the info label.
|
SheetHeaderElement |
getRowHeader(int rowIndex)
Gets the row header element at the given index.
|
boolean |
isPopupButtonPopupVisible()
Determine if the pop-up of PopupuButton is currently visible.
|
void |
scroll(int scrollTop) |
void |
scrollLeft(int scrollLeft) |
void |
scrollSheets(int amount)
Scrolls the sheet selector left or right by the given amount.
|
void |
scrollSheetsToEnd()
Scrolls the sheet selector to the end.
|
void |
scrollSheetsToStart()
Scrolls the sheet selector to the beginning.
|
void |
selectSheet(String sheetName)
Selects the sheet with the given name.
|
void |
selectSheetAt(int sheetIndex)
Selects the sheet at the given index.
|
clear, click, click, clickHiddenElement, compareScreen, compareScreen, compareScreen, contextClick, doubleClick, equals, findElement, findElements, focus, getAttribute, getCapabilities, getClassNames, getCommandExecutor, getContext, getCssValue, getDriver, getLocation, getRect, getScreenshotAs, getSize, getTagName, getText, getWrappedElement, hasClassName, hashCode, init, init, isChrome, isDisplayed, isEnabled, isFirefox, isPhantomJS, isSelected, scrollIntoView, sendKeys, showTooltip, submit, waitForVaadin, waitUntil, waitUntil, wrap, wrapElement, wrapElementspublic SheetCellElement getCellAt(int row, int column)
row - Row index, 1-basedcolumn - Column index, 1-basedorg.openqa.selenium.NoSuchElementException - if the cell at (row, column) is not found.public SheetCellElement getCellAt(String cellAddress)
cellAddress - Target address, e.g. A3org.openqa.selenium.NoSuchElementException - if the cell at (cellAddress) is not found.public SheetHeaderElement getRowHeader(int rowIndex)
rowIndex - Index of target row, 1-basedpublic SheetHeaderElement getColumnHeader(int columnIndex)
columnIndex - Index of target column, 1-basedpublic com.vaadin.testbench.TestBenchElement getAddressField()
public com.vaadin.testbench.TestBenchElement getFormulaField()
public com.vaadin.testbench.TestBenchElement getInfoLabel()
public void scroll(int scrollTop)
scroll in interface com.vaadin.testbench.commands.TestBenchElementCommandsscroll in class com.vaadin.testbench.TestBenchElementpublic void scrollLeft(int scrollLeft)
scrollLeft in interface com.vaadin.testbench.commands.TestBenchElementCommandsscrollLeft in class com.vaadin.testbench.TestBenchElementpublic void scrollSheetsToStart()
public void scrollSheetsToEnd()
public void scrollSheets(int amount)
amount - Amount to scroll. Positive numbers scroll to the right and
negative numbers scroll to the left.public void selectSheetAt(int sheetIndex)
sheetIndex - Index of sheet to select, 0-basedpublic void selectSheet(String sheetName)
sheetName - Name of sheet to selectpublic void addSheet()
public SpreadsheetElement.ContextMenuElement getContextMenu()
SpreadsheetElement.ContextMenuElementNoSuchElementException - if the menu isn't openpublic org.openqa.selenium.WebElement getCellValueInput()
public boolean isPopupButtonPopupVisible()
true if there is a visible PopupButton overlay element,
false otherwiseCopyright © 2013–2025 Vaadin Ltd. All rights reserved.