*/
package com.vaadin.tests.components.ui;
-import java.util.Collections;
-import java.util.List;
-import java.util.Locale;
-
+import com.vaadin.tests.tb3.MultiBrowserTest;
import org.junit.Assert;
import org.junit.Test;
import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
-import org.openqa.selenium.phantomjs.PhantomJSDriver;
-import org.openqa.selenium.remote.DesiredCapabilities;
-import com.vaadin.testbench.TestBench;
-import com.vaadin.tests.tb3.MultiBrowserTest;
+import java.util.Locale;
/**
* Test to check auto-generated style name for UI div and overlays div.
private boolean containsStyle(WebElement element, String style) {
return element.getAttribute("class").contains(style);
}
-
- @Override
- protected void setupDriver() throws Exception {
- System.setProperty("phantomjs.binary.path",
- "C:\\tmp\\phantom\\phantomjs.exe");
- WebDriver dr = TestBench.createDriver(new PhantomJSDriver());
- setDriver(dr);
- }
-
- @Override
- protected String getScreenshotDirectory() {
- return "C:\\tmp\\a";
- }
-
- @Override
- protected void openTestURL() {
- driver.get("http://localhost:8080/vaadin/run/UIAutoGeneratedStyleName");
- }
-
- @Override
- public List<DesiredCapabilities> getBrowsersToTest() {
- return Collections.singletonList(Browser.FIREFOX
- .getDesiredCapabilities());
- }
-
}