com.katalon.kata.webdriver.WebDriverPool Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of katalium Show documentation
Show all versions of katalium Show documentation
Fast, easy and reliable testing framework
package com.katalon.kata.webdriver;
import com.katalon.kata.helper.LogHelper;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.openqa.selenium.remote.SessionId;
import org.openqa.selenium.support.events.EventFiringWebDriver;
import org.slf4j.Logger;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Consumer;
import static com.katalon.kata.helper.Constants.SELENIUM_SERVER_URI;
public class WebDriverPool {
private static final Logger log = LogHelper.getLogger();
public static final String CHROME = "chrome";
public static final String FIREFOX = "firefox";
public static final String EDGE = "edge";
public static final String INTERNET_EXPLORER = "internet_explorer";
public static final String SAFARI = "safari";
private Map factories;
private ThreadLocal