All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.magentys.cinnamon.webdriver.events.handlers.TrackWindows Maven / Gradle / Ivy

package io.magentys.cinnamon.webdriver.events.handlers;

import com.google.common.eventbus.AllowConcurrentEvents;
import com.google.common.eventbus.Subscribe;
import io.magentys.cinnamon.webdriver.WebDriverContainer;
import io.magentys.cinnamon.webdriver.events.BeforeClickEvent;

public class TrackWindows {

    private final WebDriverContainer webDriverContainer;

    public TrackWindows(final WebDriverContainer webDriverContainer) {
        this.webDriverContainer = webDriverContainer;
    }

    @Subscribe
    @AllowConcurrentEvents
    public void handleEvent(final BeforeClickEvent event) {
        webDriverContainer.updateWindowCount();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy