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

io.nosqlbench.driver.webdriver.verbs.SwitchToFrameIdx Maven / Gradle / Ivy

package io.nosqlbench.driver.webdriver.verbs;

import io.nosqlbench.driver.webdriver.WebContext;
import org.openqa.selenium.WebDriver;

public class SwitchToFrameIdx implements WebDriverVerb {
    private final int index;

    public SwitchToFrameIdx(int index) {
        this.index = index;
    }

    @Override
    public void execute(WebContext context) {
        WebDriver frame = context.driver().switchTo().frame(index);
        context.setFocus(frame);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy