com.saucelabs.sauce_ondemand.driver
Class SauceOnDemandSPIImpl

java.lang.Object
  extended by com.saucelabs.selenium.client.factory.spi.SeleniumFactorySPI
      extended by com.saucelabs.sauce_ondemand.driver.SauceOnDemandSPIImpl

@MetaInfServices
public class SauceOnDemandSPIImpl
extends SeleniumFactorySPI

SeleniumFactorySPI that talks to Sauce OnDemand.

Author:
Kohsuke Kawaguchi

Constructor Summary
SauceOnDemandSPIImpl()
           
 
Method Summary
 com.thoughtworks.selenium.Selenium createSelenium(SeleniumFactory factory, String browserURL)
          Instantiates the driver.
 String getJobName()
          Try to find the name of the test as best we can.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SauceOnDemandSPIImpl

public SauceOnDemandSPIImpl()
Method Detail

createSelenium

public com.thoughtworks.selenium.Selenium createSelenium(SeleniumFactory factory,
                                                         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.

getJobName

public String getJobName()
Try to find the name of the test as best we can.



Copyright © 2010. All Rights Reserved.