com.saucelabs.selenium.client.logging
Class LoggingSeleniumSPIImpl

java.lang.Object
  extended by com.saucelabs.selenium.client.factory.spi.SeleniumFactorySPI
      extended by com.saucelabs.selenium.client.logging.LoggingSeleniumSPIImpl

@MetaInfServices
public class LoggingSeleniumSPIImpl
extends SeleniumFactorySPI

SeleniumFactorySPI that handles "log:...".

Author:
Kohsuke Kawaguchi

Constructor Summary
LoggingSeleniumSPIImpl()
           
 
Method Summary
 boolean canHandle(java.lang.String uri)
          Returns boolean indicating whether the Factory instance can handle the incoming URI.
static com.thoughtworks.selenium.Selenium createLoggingSelenium(com.thoughtworks.selenium.Selenium base)
          Creates a logging selenium around the given Selenium driver.
static org.openqa.selenium.WebDriver createLoggingWebDriver(org.openqa.selenium.WebDriver base)
          Creates a logging selenium around the given Selenium driver.
 com.thoughtworks.selenium.Selenium createSelenium(SeleniumFactory factory, java.lang.String browserURL)
          Instantiates the driver.
 org.openqa.selenium.WebDriver createWebDriver(SeleniumFactory factory, java.lang.String browserURL)
          Instantiates the driver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingSeleniumSPIImpl

public LoggingSeleniumSPIImpl()
Method Detail

createSelenium

public com.thoughtworks.selenium.Selenium createSelenium(SeleniumFactory factory,
                                                         java.lang.String browserURL)
Description copied from class: SeleniumFactorySPI
Instantiates the driver.

This method is invoked in response to SeleniumFactory.createSelenium() to actually instantiate the driver.

Specified by:
createSelenium in class SeleniumFactorySPI
Parameters:
factory - The factory that captures the configuration that the calling user application is looking for. Never null.
browserURL - See the parameter of the same name in DefaultSelenium#DefaultSelenium(String, int, String, String). This specifies the domain name in the format of "http://foo.example.com" where the test occurs.
Returns:
null if the implementation didn't recognize the URI specified in the factory. returning null causes SeleniumFactory to try other SPIs found in the system.

createWebDriver

public org.openqa.selenium.WebDriver createWebDriver(SeleniumFactory factory,
                                                     java.lang.String browserURL)
Description copied from class: SeleniumFactorySPI
Instantiates the driver.

This method is invoked in response to SeleniumFactory.createWebDriver() ()} to actually instantiate the driver.

Specified by:
createWebDriver in class SeleniumFactorySPI
Parameters:
factory - The factory that captures the configuration that the calling user application is looking for. Never null.
browserURL - This specifies the domain name in the format of "http://foo.example.com" where the test occurs.
Returns:
null if the implementation didn't recognize the URI specified in the factory. returning null causes SeleniumFactory to try other SPIs found in the system.

canHandle

public boolean canHandle(java.lang.String uri)
Description copied from class: SeleniumFactorySPI
Returns boolean indicating whether the Factory instance can handle the incoming URI.

Specified by:
canHandle in class SeleniumFactorySPI
Parameters:
uri - URI to check
Returns:
boolean that indicates whether the Factory can handle the incoming URI

createLoggingSelenium

public static com.thoughtworks.selenium.Selenium createLoggingSelenium(com.thoughtworks.selenium.Selenium base)
Creates a logging selenium around the given Selenium driver.


createLoggingWebDriver

public static org.openqa.selenium.WebDriver createLoggingWebDriver(org.openqa.selenium.WebDriver base)
Creates a logging selenium around the given Selenium driver.



Copyright © 2012. All Rights Reserved.