src/main/java/com/xceptance/neodymium/module/statement/browser/multibrowser/WebDriverCache.java
/**
     * Looks up cache for argument {@link WebDriver} and removes it from cache.
     * 
     * @param driver
     *            an instance of {@link WebDriver}
     * @return {@link Boolean} which indicates if the {@link WebDriver} was found and removed from cache.
     */
Looks up cache for argument  WebDriver and removes it from cache.

@param driver
an instance of  WebDriver
@return  Boolean which indicates if the  WebDriver was found and removed from cache.
Looks up cache for argument WebDriver and removes it from cache . @param driver an instance of WebDriver @return Boolean which indicates if the WebDriver was found and removed from cache .
public boolean removeWebDriverStateContainerByWebDriver(WebDriver driver)
    {
        synchronized (cache)
        {
            boolean removed = false;
            for (Entry<String, WebDriverStateContainer> entry : cache.entrySet())
            {
                if (entry.getValue().getWebDriver() == driver)
                {
                    cache.remove(entry.getKey());
                    removed = true;
                }
            }
            return removed;
        }
    }
public boolean removeWebDriverStateContainerByWebDriver ( WebDriver driver ) { synchronized ( cache ) { boolean removed = false ; for ( Entry < String , WebDriverStateContainer > entry : cache . entrySet ( ) ) { if ( entry . getValue ( ) . getWebDriver ( ) == driver ) { cache . remove ( entry . getKey ( ) ) ; removed = true ; } } return removed ; } }
Looks up cache for argument {@link WebDriver} and removes it from cache.
Looks up cache for argument { @link WebDriver } and removes it from cache .