Class WebBrowserFactory

  • All Implemented Interfaces:
    org.springframework.beans.factory.FactoryBean<WebBrowser>

    @Component
    public class WebBrowserFactory
    extends java.lang.Object
    implements org.springframework.beans.factory.FactoryBean<WebBrowser>
    Factory of WebBrowser object This will initialize automatically local/remote WebDriver based on settings defined *.properties/spring XML file/system environment Take a look on ContextAwareParallelSampleTest for a simple example on how to use it
    Author:
    Paul.Brodner
    • Constructor Detail

      • WebBrowserFactory

        public WebBrowserFactory()
    • Method Detail

      • getWebBrowser

        public WebBrowser getWebBrowser()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getObjectType

        public java.lang.Class<?> getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean<WebBrowser>
      • isSingleton

        public boolean isSingleton()
        Specified by:
        isSingleton in interface org.springframework.beans.factory.FactoryBean<WebBrowser>
      • getObject

        public WebBrowser getObject()
                             throws java.lang.Exception
        Specified by:
        getObject in interface org.springframework.beans.factory.FactoryBean<WebBrowser>
        Throws:
        java.lang.Exception
      • quit

        public void quit()
                  throws java.lang.Exception
        Throws:
        java.lang.Exception