[java] Isolating a test that uses non-standard capabilities
import org.openqa.selenium.testing.Ignore;
import org.openqa.selenium.testing.JUnit4TestBase;
import org.openqa.selenium.testing.NeedsFreshDriver;
+import org.openqa.selenium.testing.NoDriverAfterTest;
import org.openqa.selenium.testing.NoDriverBeforeTest;
import org.openqa.selenium.testing.NotYetImplemented;
import org.openqa.selenium.testing.SwitchToTopAfterTest;
@@ -144,6 +145,7 @@ public void testUploadingWithInvisibleFileInput() {
@Ignore(HTMLUNIT)
@NotYetImplemented(EDGE)
@NoDriverBeforeTest
+ @NoDriverAfterTest
public void testUploadingWithInvisibleFileInputWhenStrictFileInteractabilityIsOn() {
createNewDriver(new ImmutableCapabilities(CapabilityType.STRICT_FILE_INTERACTABILITY, true));
