View Javadoc

1   package com.atlassian.pageobjects.elements.test;
2   
3   import com.atlassian.pageobjects.elements.test.pageobjects.PageElementsTestedProduct;
4   import com.atlassian.webdriver.testing.annotation.TestedProductClass;
5   import com.atlassian.webdriver.testing.rule.DefaultProductContextRules;
6   import com.atlassian.webdriver.testing.simpleserver.SimpleServerRunner;
7   import org.junit.ClassRule;
8   import org.junit.Rule;
9   import org.junit.runner.RunWith;
10  import org.openqa.selenium.WebDriver;
11  
12  import javax.inject.Inject;
13  
14  @TestedProductClass(PageElementsTestedProduct.class)
15  @RunWith(SimpleServerRunner.class)
16  public abstract class AbstractPageElementBrowserTest
17  {
18      @Inject protected static PageElementsTestedProduct product;
19      @Inject protected static WebDriver driver;
20  
21      @Inject @ClassRule public static DefaultProductContextRules.ForClass classRules;
22      @Inject @Rule public DefaultProductContextRules.ForMethod methodRules;
23  }