com.github.markusbernhardt.selenium2library.utils
Class WebDriverCache

java.lang.Object
  extended by com.github.markusbernhardt.selenium2library.utils.WebDriverCache

public class WebDriverCache
extends Object


Nested Class Summary
static class WebDriverCache.SessionIdAliasWebDriverTuple
           
 
Constructor Summary
WebDriverCache()
           
 
Method Summary
 void close()
           
 void closeAll()
           
 org.openqa.selenium.WebDriver getCurrent()
           
 String getCurrentSessionId()
           
 Collection<WebDriverCache.SessionIdAliasWebDriverTuple> getWebDrivers()
           
 String register(org.openqa.selenium.WebDriver webDriver, String alias)
           
 void switchBrowser(String sessionIdOrAlias)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebDriverCache

public WebDriverCache()
Method Detail

register

public String register(org.openqa.selenium.WebDriver webDriver,
                       String alias)

getCurrent

public org.openqa.selenium.WebDriver getCurrent()

getCurrentSessionId

public String getCurrentSessionId()

close

public void close()

closeAll

public void closeAll()

switchBrowser

public void switchBrowser(String sessionIdOrAlias)

getWebDrivers

public Collection<WebDriverCache.SessionIdAliasWebDriverTuple> getWebDrivers()


Copyright © 2013. All Rights Reserved.