View Javadoc

1   package com.atlassian.pageobjects.browser;
2   
3   import java.lang.annotation.ElementType;
4   import java.lang.annotation.Retention;
5   import java.lang.annotation.RetentionPolicy;
6   import java.lang.annotation.Target;
7   
8   /**
9    * Marks elements that should only be called if the current test browser matches any of the given browsers.
10   *
11   * @since 2.1
12   */
13  @Retention(RetentionPolicy.RUNTIME)
14  @Target({ ElementType.METHOD, ElementType.TYPE, ElementType.PACKAGE })
15  public @interface RequireBrowser
16  {
17      Browser[] value() default {Browser.ALL};
18  }