Skip to content

Instantly share code, notes, and snippets.

Avatar

Araz Abishov arazabishov

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am arazabishov on github.
  • I am arazabishov (https://keybase.io/arazabishov) on keybase.
  • I have a public key ASAIi1cUH8tVzVgsF2m41HVXeJmq5bn-X6C9OJwymz23rwo

To claim this, I am signing this object:

@arazabishov
arazabishov / CaptureScreenshots.java
Last active Jun 23, 2018
A JUnit Rule for capturing screenshots using Spoon
View CaptureScreenshots.java
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@Target(METHOD)
@Retention(RUNTIME)
public @interface CaptureScreenshots {
String before() default "";