Skip to content

Instantly share code, notes, and snippets.

@papousek
Last active December 14, 2015 05:48
Show Gist options
  • Save papousek/5037554 to your computer and use it in GitHub Desktop.
Save papousek/5037554 to your computer and use it in GitHub Desktop.
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.FIELD, ElementType.PARAMETER })
@Qualifier
public @interface Browser1 {
}
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.FIELD, ElementType.PARAMETER })
@Qualifier
public @interface Browser2 {
}
public class TestCase {
@Browser1
@Drone
private Graphene graphene1;
@Browser2
@Drone
private Graphene graphene2;
@Browser1
@Page
private SomePage page1;
@Browser2
@Page
private SomePage page2;
public void test() {
Gra
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment