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));
}
}