Package org.openqa.selenium.interactions

Examples of org.openqa.selenium.interactions.Actions.doubleClick()


        String menuName = "checkPosition";
        WebDriver driver = this.getDriver();
        WebElement menuLabel = driver.findElement(By.className(label));
        WebElement menu = driver.findElement(By.className(menuName));
        Actions a = new Actions(driver);
        a.doubleClick(menuLabel).build().perform();
        assertTrue("Check Menu list should be expanded even after double click",
                menu.getAttribute("class").contains("visible"));
    }

    /**
 
View Full Code Here


        WebElement outputDiv = findDomElement(By.id("output"));

        String eventName = "dblclick";
        WebElement input = auraUITestingUtil.findElementAndTypeEventNameInIt(eventName);
        assertModelValue(value, "Value shouldn't be updated yet.");
        a.doubleClick(input).build().perform();
        value = assertModelValue(eventName);
        assertDomEventSet();

        eventName = "mousemove";
        input = auraUITestingUtil.findElementAndTypeEventNameInIt(eventName);
View Full Code Here

        assertDomEventSet();

        eventName = "select";
        input = auraUITestingUtil.findElementAndTypeEventNameInIt(eventName);
        assertModelValue(value, "Value shouldn't be updated yet.");
        a.doubleClick(input).build().perform();
        value = assertModelValue(eventName);
    }

    /**
     * Different browsers support different events, so this case tests an event supported by all browsers.
View Full Code Here

        Actions actionBuilder = new Actions(d);

        d.get("http://www.duckduckgo.com");

        // Double click
        actionBuilder.doubleClick().build().perform();
        // Double click on the logo
        actionBuilder.doubleClick(d.findElement(By.id("logo_homepage_link"))).build().perform();
    }

    @Test
View Full Code Here

        d.get("http://www.duckduckgo.com");

        // Double click
        actionBuilder.doubleClick().build().perform();
        // Double click on the logo
        actionBuilder.doubleClick(d.findElement(By.id("logo_homepage_link"))).build().perform();
    }

    @Test
    public void clickAndHold() {
        WebDriver d = getDriver();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.