Open Jacobvu84 opened 4 years ago
import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(RetentionPolicy.RUNTIME) @Target({ ElementType.METHOD, ElementType.TYPE }) public @interface WithDriverOption { String capability(); String value(); }
and
import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(RetentionPolicy.RUNTIME) @Target({ ElementType.METHOD, ElementType.TYPE}) public @interface WithDriverOptions { WithDriverOption[] value(); }
Cách dùng
@WithDriverOptions({ @WithDriverOption(capability = "noReset", value = "true"), @WithDriverOption(capability = "usePrebuiltWDA", value = "true") })
and