package jp.vmi.selenium.selenese.command;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebDriver.Window;
import jp.vmi.selenium.selenese.Context;
import jp.vmi.selenium.selenese.result.Result;
import static jp.vmi.selenium.selenese.result.Success.*;
/**
* Command "windowMaximize".
*/
public class WindowMaximize extends AbstractCommand {
WindowMaximize(int index, String name, String... args) {
super(index, name, args);
}
@Override
protected Result executeImpl(Context context, String... curArgs) {
WebDriver driver = context.getWrappedDriver();
Window window = driver.manage().window();
window.maximize();
return SUCCESS;
}
}