Examples of moveByOffset()


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

        WebElement wrapper = driver.findElement(By
                .className("v-verticallayout"));
        Actions actions = new Actions(driver);
        actions.clickAndHold(wrapper);
        actions.moveByOffset(50, 50);
        actions.perform();

        WebElement dragElement = driver.findElement(By
                .className("v-drag-element"));
        List<WebElement> children = dragElement.findElements(By.xpath(".//*"));
 
View Full Code Here

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

         * start dragging an element from a position above the element itself.
         */
        if (BrowserUtil.isIE8(getDesiredCapabilities())) {
            Actions action = new Actions(getDriver());
            action.moveToElement(element);
            action.moveByOffset(0, 1);
            action.clickAndHold();
            action.moveByOffset(xOffset, yOffset);
            action.release();
            action.build().perform();
        } else {
View Full Code Here

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

        if (BrowserUtil.isIE8(getDesiredCapabilities())) {
            Actions action = new Actions(getDriver());
            action.moveToElement(element);
            action.moveByOffset(0, 1);
            action.clickAndHold();
            action.moveByOffset(xOffset, yOffset);
            action.release();
            action.build().perform();
        } else {
            Actions action = new Actions(getDriver());
            action.dragAndDropBy(element, xOffset, yOffset);
View Full Code Here

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

        Actions actionBuilder = new Actions(d);

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

        // Move mouse by x,y
        actionBuilder.moveByOffset(100, 100).build().perform();
        // Move mouse on a given element
        actionBuilder.moveToElement(d.findElement(By.id("logo_homepage_link"))).build().perform();
        // Move mouse on a given element, by x,y relative coordinates
        actionBuilder.moveToElement(d.findElement(By.id("logo_homepage_link")), 50, 50).build().perform();
    }
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.