package cz.moneta.test.harness.support.web;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Selects either the first frame on the page, or the main document when a page contains iframes. Usually uses with
 * other annotations.
 *    <pre>
 *         {@literal @}SwitchToDefaultContent
 *         {@literal @}Click(SOME_VALUE)
 *          SomePage switchToDefaultAndClick\();
 *    </pre>
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface SwitchToDefaultContent {
}
