All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.serenitybdd.screenplay.actions.MoveMouse Maven / Gradle / Ivy

There is a newer version: 4.2.8
Show newest version
package net.serenitybdd.screenplay.actions;

import net.serenitybdd.screenplay.targets.Target;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;

public class MoveMouse {

    public static WithChainableActions to(Target target) {
        return new MoveMouseToTarget(target);
    }

    public static WithChainableActions to(String xpathOrCSSSelector) {
        return new MoveMouseToTarget(Target.the(xpathOrCSSSelector).locatedBy(xpathOrCSSSelector));
    }

    public static WithChainableActions to(WebElement element) {
        return new MoveMouseToWebElement(element);
    }

    public static WithChainableActions to(By... locators) {
        return new MoveMouseToBy(locators);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy