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

jp.vmi.selenium.selenese.locator.XPathHandler Maven / Gradle / Ivy

package jp.vmi.selenium.selenese.locator;

import java.util.List;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;

class XPathHandler implements LocatorHandler {

    @Override
    public String locatorType() {
        return "xpath";
    }

    @Override
    public List handle(WebDriver driver, String arg) {
        return driver.findElements(By.xpath(arg));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy