-
-
Save kpiwko/9972561 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void removeAllActivitiesForDrone(@Observes BeforeDroneDestroyed event) { | |
InjectionPoint<?> injectionPoint = event.getInjectionPoint(); | |
if (WebDriver.class.isAssignableFrom(injectionPoint.getDroneType())) { | |
WebDriverConfiguration configuration = droneContext.get() | |
.getDroneConfiguration(injectionPoint, WebDriverConfiguration.class); | |
if (configuration.getBrowser().equals("android")) { | |
activityWebDriverMapper.get().removeActivities((WebDriver) drone); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment