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

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

There is a newer version: 0.2.0
Show newest version
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