Package jp.vmi.selenium.selenese.command

Source Code of jp.vmi.selenium.selenese.command.WindowMaximize

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

Related Classes of jp.vmi.selenium.selenese.command.WindowMaximize

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.