openTestURL();
WebElement element = vaadinElement("/VVerticalLayout[0]/Slot[0]/VSlider[0]/domChild[2]/domChild[0]");
new Actions(driver).dragAndDropBy(element, 112, 0).perform();
+ testBench().waitForVaadin();
compareScreen("enabled");
vaadinElementById("disableButton").click();
compareScreen("disabled");
* If something goes wrong
*/
protected void setupDriver() throws Exception {
+ DesiredCapabilities capabilities;
+
RunLocally runLocally = getClass().getAnnotation(RunLocally.class);
if (runLocally != null) {
- setupLocalDriver(runLocally.value().getDesiredCapabilities());
- return;
- }
- DesiredCapabilities capabilities = getDesiredCapabilities();
+ capabilities = runLocally.value().getDesiredCapabilities();
+ setupLocalDriver(capabilities);
+ } else {
+ capabilities = getDesiredCapabilities();
- WebDriver dr = TestBench.createDriver(new RemoteWebDriver(new URL(
- getHubURL()), capabilities));
- setDriver(dr);
+ WebDriver dr = TestBench.createDriver(new RemoteWebDriver(new URL(
+ getHubURL()), capabilities));
+ setDriver(dr);
+ }
int w = SCREENSHOT_WIDTH;
int h = SCREENSHOT_HEIGHT;