View Javadoc

1   package com.atlassian.webdriver.testing.annotation;
2   
3   import com.atlassian.pageobjects.browser.Browser;
4   
5   import java.lang.annotation.ElementType;
6   import java.lang.annotation.Inherited;
7   import java.lang.annotation.Retention;
8   import java.lang.annotation.RetentionPolicy;
9   import java.lang.annotation.Target;
10  
11  /**
12   * Similar to the JUnit {@link org.junit.Ignore} but allows tests
13   * to be ignored based on specific browsers.
14   * Annotate a test method or class with this type and, when using
15   * {@link com.atlassian.webdriver.testing.rule.IgnoreBrowserRule}, the test method will be skipped.
16   *
17   * @since 2.1.0
18   * @deprecated use {@link com.atlassian.pageobjects.browser.IgnoreBrowser} instead. Scheduled for removal in 3.0
19   */
20  @Retention (RetentionPolicy.RUNTIME)
21  @Target ({ElementType.METHOD, ElementType.TYPE})
22  @Inherited
23  @Deprecated
24  public @interface IgnoreBrowser
25  {
26      Browser[] value() default {Browser.ALL};
27      String reason() default ("No reason given");
28  }