You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TableTooManyColumnsTest.java 783B

12345678910111213141516171819202122232425262728293031
  1. package com.vaadin.tests.components.table;
  2. import java.io.IOException;
  3. import org.junit.Test;
  4. import org.openqa.selenium.WebElement;
  5. import com.vaadin.testbench.By;
  6. import com.vaadin.testbench.commands.TestBenchElementCommands;
  7. import com.vaadin.tests.tb3.MultiBrowserTest;
  8. public class TableTooManyColumnsTest extends MultiBrowserTest {
  9. @Test
  10. public void testDropdownTable() throws IOException {
  11. openTestURL();
  12. WebElement element = findElement(
  13. By.className("v-table-column-selector"));
  14. element.click();
  15. WebElement menu = findElement(By.className("gwt-MenuBar-vertical"));
  16. TestBenchElementCommands scrollable = testBenchElement(menu);
  17. scrollable.scroll(3000);
  18. compareScreen("init");
  19. }
  20. }