View Javadoc

1   package com.atlassian.webdriver.testing.annotation;
2   
3   import com.atlassian.webdriver.testing.rule.TestBrowserRule;
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   * <p/>
13   * This allows tests methods, classes or packages to be annotated with
14   * the browser string that will be set if using the  {@link TestBrowserRule}
15   * so that when the test runs it runs with a specific browser, e.g. @TestBrowser("firefox").
16   *
17   * @since 2.1
18   * @see {@link TestBrowserRule}
19   * @deprecated use {@link com.atlassian.pageobjects.browser.RequireBrowser} instead. Scheduled for removal in 3.0
20   */
21  @Retention (RetentionPolicy.RUNTIME)
22  @Target ({ElementType.TYPE, ElementType.PACKAGE, ElementType.METHOD})
23  @Inherited
24  @Deprecated
25  public @interface TestBrowser
26  {
27      String value();
28  }