package jp.vmi.selenium.selenese.subcommand; import jp.vmi.selenium.selenese.Context; import jp.vmi.selenium.selenese.command.ArgumentType; /** * Re-implementation of GetElementHeight. */ public class GetElementPositionLeft extends AbstractSubCommand<Integer> { private static final int ARG_LOCATOR = 0; /** * Constructor. */ public GetElementPositionLeft() { super(ArgumentType.LOCATOR); } @Override public Integer execute(Context context, String... args) { return context.findElement(args[ARG_LOCATOR]).getLocation().getX(); } }