Apply '@Rule' after each '@Test' and before each '@After' in JUnit Apply '@Rule' after each '@Test' and before each '@After' in JUnit selenium selenium