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

jp.vmi.selenium.selenese.command.EndLoopImpl Maven / Gradle / Ivy

package jp.vmi.selenium.selenese.command;

import jp.vmi.selenium.selenese.Context;
import jp.vmi.selenium.selenese.result.Result;

import static jp.vmi.selenium.selenese.result.Success.*;

/**
 *
 */
public abstract class EndLoopImpl extends AbstractCommand implements EndLoop {

    EndLoopImpl(int index, String name, String[] args, ArgumentType... argTypes) {
        super(index, name, args, argTypes);
    }

    @Override
    public boolean mayUpdateScreen() {
        return false;
    }

    @Override
    protected Result executeImpl(Context context, String... curArgs) {
        StartLoop startLoop = getStartLoop();
        startLoop.incrementReachedCount();
        context.getCommandListIterator().jumpTo(startLoop);
        return SUCCESS;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy