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.

UploadTitleWithTooltipTest.java 947B

123456789101112131415161718192021222324252627282930313233343536373839
  1. package com.vaadin.tests.components.upload;
  2. import static org.junit.Assert.assertNotNull;
  3. import java.util.List;
  4. import org.junit.Test;
  5. import org.openqa.selenium.By;
  6. import org.openqa.selenium.WebElement;
  7. import com.vaadin.tests.tb3.TooltipTest;
  8. /**
  9. * Test for check visibility of browser-dependent tootlip for Upload component.
  10. *
  11. * @author Vaadin Ltd
  12. */
  13. public class UploadTitleWithTooltipTest extends TooltipTest {
  14. @Test
  15. public void testDropdownTable() throws Exception {
  16. openTestURL();
  17. List<WebElement> elements = findElements(By.tagName("input"));
  18. WebElement input = null;
  19. for (WebElement element : elements) {
  20. if ("file".equals(element.getAttribute("type"))) {
  21. input = element;
  22. }
  23. }
  24. assertNotNull("Input element with type 'file' is not found", input);
  25. checkTooltip(input, "tooltip");
  26. compareScreen("init");
  27. }
  28. }