Class FluentTestNgSpringTest

  • All Implemented Interfaces:
    org.fluentlenium.adapter.IFluentAdapter, org.fluentlenium.adapter.TestRunnerAdapter, org.fluentlenium.configuration.Configuration, org.fluentlenium.configuration.ConfigurationMutator, org.fluentlenium.configuration.ConfigurationProperties, org.fluentlenium.core.action.InputControl, org.fluentlenium.core.alert.AlertControl, org.fluentlenium.core.capabilities.CapabilitiesControl, org.fluentlenium.core.components.ComponentInstantiator, org.fluentlenium.core.css.CssControl, org.fluentlenium.core.events.EventsControl, org.fluentlenium.core.FluentControl, org.fluentlenium.core.inject.FluentInjectControl, org.fluentlenium.core.navigation.NavigationControl, org.fluentlenium.core.performance.PerformanceTimingControl, org.fluentlenium.core.script.JavascriptControl, org.fluentlenium.core.search.SearchControl<org.fluentlenium.core.domain.FluentWebElement>, org.fluentlenium.core.SeleniumDriverControl, org.fluentlenium.core.snapshot.SnapshotControl, org.fluentlenium.core.wait.AwaitControl, org.fluentlenium.utils.chromium.ChromiumControl, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.testng.IHookable, org.testng.ITestNGListener

    public class FluentTestNgSpringTest
    extends org.springframework.test.context.testng.AbstractTestNGSpringContextTests
    TestNG FluentLenium Test Runner Adapter.

    Extends this class to provide FluentLenium support to your TestNG Test class.

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.fluentlenium.configuration.ConfigurationProperties

        org.fluentlenium.configuration.ConfigurationProperties.DriverLifecycle, org.fluentlenium.configuration.ConfigurationProperties.TriggerMode
    • Field Summary

      • Fields inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests

        applicationContext, logger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterClass()
      After test class.
      void afterMethod​(org.testng.ITestResult result)
      After test method.
      void afterTest​(org.testng.ITestContext context)
      After test.
      org.fluentlenium.core.alert.Alert alert()  
      <L extends java.util.List<T>,​T>
      L
      asComponentList​(java.lang.Class<L> listClass, java.lang.Class<T> componentClass, java.lang.Iterable<org.openqa.selenium.WebElement> elements)  
      <L extends java.util.List<T>,​T>
      L
      asComponentList​(java.lang.Class<L> listClass, java.lang.Class<T> componentClass, java.util.List<org.openqa.selenium.WebElement> elements)  
      <L extends java.util.List<T>,​T>
      L
      asComponentList​(java.lang.Class<L> listClass, java.lang.Class<T> componentClass, org.openqa.selenium.WebElement... elements)  
      <T> org.fluentlenium.core.domain.ComponentList asComponentList​(java.lang.Class<T> componentClass, java.lang.Iterable<org.openqa.selenium.WebElement> elements)  
      <T> org.fluentlenium.core.domain.ComponentList<T> asComponentList​(java.lang.Class<T> componentClass, java.util.List<org.openqa.selenium.WebElement> elements)  
      <T> org.fluentlenium.core.domain.ComponentList<T> asComponentList​(java.lang.Class<T> componentClass, org.openqa.selenium.WebElement... elements)  
      <T extends org.fluentlenium.core.domain.FluentWebElement>
      org.fluentlenium.core.domain.FluentList<T>
      asFluentList​(java.lang.Class<T> componentClass, java.lang.Iterable<org.openqa.selenium.WebElement> elements)  
      <T extends org.fluentlenium.core.domain.FluentWebElement>
      org.fluentlenium.core.domain.FluentList<T>
      asFluentList​(java.lang.Class<T> componentClass, java.util.List<org.openqa.selenium.WebElement> elements)  
      <T extends org.fluentlenium.core.domain.FluentWebElement>
      org.fluentlenium.core.domain.FluentList<T>
      asFluentList​(java.lang.Class<T> componentClass, org.openqa.selenium.WebElement... elements)  
      org.fluentlenium.core.domain.FluentList<org.fluentlenium.core.domain.FluentWebElement> asFluentList​(java.lang.Iterable<org.openqa.selenium.WebElement> elements)  
      org.fluentlenium.core.domain.FluentList<org.fluentlenium.core.domain.FluentWebElement> asFluentList​(java.util.List<org.openqa.selenium.WebElement> elements)  
      org.fluentlenium.core.domain.FluentList<org.fluentlenium.core.domain.FluentWebElement> asFluentList​(org.openqa.selenium.WebElement... elements)  
      org.fluentlenium.core.wait.FluentWait await()  
      void beforeMethod​(java.lang.reflect.Method method, org.testng.ITestContext context)
      Before test.
      boolean canTakeScreenShot()  
      org.openqa.selenium.Capabilities capabilities()  
      org.fluentlenium.core.css.CssSupport css()  
      org.fluentlenium.core.domain.FluentWebElement el​(org.openqa.selenium.WebElement rawElement)  
      org.fluentlenium.core.events.EventsRegistry events()  
      org.fluentlenium.core.script.FluentJavascript executeAsyncScript​(java.lang.String script, java.lang.Object... args)  
      org.fluentlenium.core.script.FluentJavascript executeScript​(java.lang.String script, java.lang.Object... args)  
      protected void failed​(java.lang.Throwable e, java.lang.Class<?> testClass, java.lang.String testName)
      Invoked when a test method has failed (before finished)
      org.fluentlenium.core.domain.FluentList<org.fluentlenium.core.domain.FluentWebElement> find​(java.lang.String selector, org.fluentlenium.core.search.SearchFilter... filters)  
      org.fluentlenium.core.domain.FluentList<org.fluentlenium.core.domain.FluentWebElement> find​(java.util.List<org.openqa.selenium.WebElement> rawElements)  
      org.fluentlenium.core.domain.FluentList<org.fluentlenium.core.domain.FluentWebElement> find​(org.fluentlenium.core.search.SearchFilter... filters)  
      org.fluentlenium.core.domain.FluentList<org.fluentlenium.core.domain.FluentWebElement> find​(org.openqa.selenium.By locator, org.fluentlenium.core.search.SearchFilter... filters)  
      protected void finished​(java.lang.Class<?> testClass, java.lang.String testName)
      Invoked when a test method has finished (whatever the success of failing status)
      io.appium.java_client.AppiumDriver<?> getAppiumDriver()  
      java.lang.Long getAwaitAtMost()  
      java.lang.Long getAwaitPollingEvery()  
      java.lang.String getBaseUrl()  
      java.lang.Long getBrowserTimeout()  
      java.lang.Integer getBrowserTimeoutRetries()  
      org.openqa.selenium.Capabilities getCapabilities()  
      org.fluentlenium.utils.chromium.ChromiumApi getChromiumApi()  
      <T extends java.lang.annotation.Annotation>
      T
      getClassAnnotation​(java.lang.Class<T> annotation)  
      org.fluentlenium.configuration.Configuration getConfiguration()  
      java.lang.Class<? extends org.fluentlenium.configuration.ConfigurationProperties> getConfigurationDefaults()  
      java.lang.Class<? extends org.fluentlenium.configuration.ConfigurationFactory> getConfigurationFactory()  
      org.fluentlenium.adapter.FluentControlContainer getControlContainer()  
      org.openqa.selenium.Cookie getCookie​(java.lang.String name)  
      java.util.Set<org.openqa.selenium.Cookie> getCookies()  
      java.lang.String getCustomProperty​(java.lang.String propertyName)  
      java.lang.Boolean getDeleteCookies()  
      org.openqa.selenium.WebDriver getDriver()  
      org.fluentlenium.configuration.ConfigurationProperties.DriverLifecycle getDriverLifecycle()  
      java.lang.Boolean getEventsEnabled()  
      org.fluentlenium.core.inject.ContainerFluentControl getFluentControl()  
      org.fluentlenium.configuration.ConfigurationProperties.TriggerMode getHtmlDumpMode()  
      java.lang.String getHtmlDumpPath()  
      java.lang.Long getImplicitlyWait()  
      <T extends java.lang.annotation.Annotation>
      T
      getMethodAnnotation​(java.lang.Class<T> annotation)  
      java.lang.Long getPageLoadTimeout()  
      java.lang.String getRemoteUrl()  
      org.fluentlenium.configuration.ConfigurationProperties.TriggerMode getScreenshotMode()  
      java.lang.String getScreenshotPath()  
      java.lang.Long getScriptTimeout()  
      java.lang.Class<?> getTestClass()  
      java.lang.String getTestMethodName()  
      java.lang.String getWebDriver()  
      void goTo​(java.lang.String url)  
      <P extends org.fluentlenium.core.FluentPage>
      P
      goTo​(P page)  
      void goToInNewTab​(java.lang.String url)  
      org.fluentlenium.core.inject.ContainerContext inject​(java.lang.Object container)  
      org.fluentlenium.core.inject.ContainerContext injectComponent​(java.lang.Object componentContainer, java.lang.Object parentContainer, org.openqa.selenium.SearchContext context)  
      boolean isComponentClass​(java.lang.Class<?> componentClass)  
      boolean isComponentListClass​(java.lang.Class<? extends java.util.List<?>> componentListClass)  
      org.fluentlenium.core.action.KeyboardActions keyboard()  
      org.fluentlenium.core.action.MouseActions mouse()  
      <T> T newComponent​(java.lang.Class<T> componentClass, org.openqa.selenium.WebElement element)  
      <L extends java.util.List<T>,​T>
      L
      newComponentList​(java.lang.Class<L> listClass, java.lang.Class<T> componentClass)  
      <L extends java.util.List<T>,​T>
      L
      newComponentList​(java.lang.Class<L> listClass, java.lang.Class<T> componentClass, java.util.List<T> componentsList)  
      <L extends java.util.List<T>,​T>
      L
      newComponentList​(java.lang.Class<L> listClass, java.lang.Class<T> componentClass, T... componentsList)  
      <T> org.fluentlenium.core.domain.ComponentList<T> newComponentList​(java.lang.Class<T> componentClass)  
      <T> org.fluentlenium.core.domain.ComponentList<T> newComponentList​(java.lang.Class<T> componentClass, java.util.List<T> componentsList)  
      <T> org.fluentlenium.core.domain.ComponentList<T> newComponentList​(java.lang.Class<T> componentClass, T... componentsList)  
      org.fluentlenium.core.domain.FluentWebElement newFluent​(org.openqa.selenium.WebElement element)  
      org.fluentlenium.core.domain.FluentList<org.fluentlenium.core.domain.FluentWebElement> newFluentList()  
      <T extends org.fluentlenium.core.domain.FluentWebElement>
      org.fluentlenium.core.domain.FluentList<T>
      newFluentList​(java.lang.Class<T> componentClass)  
      <T extends org.fluentlenium.core.domain.FluentWebElement>
      org.fluentlenium.core.domain.FluentList<T>
      newFluentList​(java.lang.Class<T> componentClass, java.util.List<T> elements)  
      <T extends org.fluentlenium.core.domain.FluentWebElement>
      org.fluentlenium.core.domain.FluentList<T>
      newFluentList​(java.lang.Class<T> componentClass, T... elements)  
      org.fluentlenium.core.domain.FluentList<org.fluentlenium.core.domain.FluentWebElement> newFluentList​(java.util.List<org.fluentlenium.core.domain.FluentWebElement> elements)  
      org.fluentlenium.core.domain.FluentList<org.fluentlenium.core.domain.FluentWebElement> newFluentList​(org.fluentlenium.core.domain.FluentWebElement... elements)  
      <T> T newInstance​(java.lang.Class<T> cls)  
      java.lang.String pageSource()  
      org.fluentlenium.core.performance.PerformanceTiming performanceTiming()  
      void setAwaitAtMost​(java.lang.Long awaitAtMost)  
      void setAwaitPollingEvery​(java.lang.Long awaitPollingEvery)  
      void setBaseUrl​(java.lang.String baseUrl)  
      void setBrowserTimeout​(java.lang.Long timeout)  
      void setBrowserTimeoutRetries​(java.lang.Integer retriesNumber)  
      void setCapabilities​(org.openqa.selenium.Capabilities capabilities)  
      void setConfigurationFactory​(java.lang.Class<? extends org.fluentlenium.configuration.ConfigurationFactory> configurationFactory)  
      void setCustomProperty​(java.lang.String key, java.lang.String value)  
      void setDeleteCookies​(java.lang.Boolean deleteCookies)  
      void setDriverLifecycle​(org.fluentlenium.configuration.ConfigurationProperties.DriverLifecycle driverLifecycle)  
      void setEventsEnabled​(java.lang.Boolean eventsEnabled)  
      void setHtmlDumpMode​(org.fluentlenium.configuration.ConfigurationProperties.TriggerMode htmlDumpMode)  
      void setHtmlDumpPath​(java.lang.String htmlDumpPath)  
      void setImplicitlyWait​(java.lang.Long implicitlyWait)  
      void setPageLoadTimeout​(java.lang.Long pageLoadTimeout)  
      void setRemoteUrl​(java.lang.String remoteUrl)  
      void setScreenshotMode​(org.fluentlenium.configuration.ConfigurationProperties.TriggerMode screenshotMode)  
      void setScreenshotPath​(java.lang.String screenshotPath)  
      void setScriptTimeout​(java.lang.Long scriptTimeout)  
      void setWebDriver​(java.lang.String webDriver)  
      protected void starting​(java.lang.Class<?> testClass, java.lang.String testName)
      Invoked when a test method is starting.
      void switchTo()  
      void switchTo​(org.fluentlenium.core.domain.FluentList<? extends org.fluentlenium.core.domain.FluentWebElement> elements)  
      void switchTo​(org.fluentlenium.core.domain.FluentWebElement element)  
      void switchToDefault()  
      void takeHtmlDump()  
      void takeHtmlDump​(java.lang.String fileName)  
      void takeScreenshot()  
      void takeScreenshot​(java.lang.String fileName)  
      java.lang.String url()  
      org.fluentlenium.core.action.WindowAction window()  
      • Methods inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests

        run, setApplicationContext, springTestContextAfterTestClass, springTestContextAfterTestMethod, springTestContextBeforeTestClass, springTestContextBeforeTestMethod, springTestContextPrepareTestInstance
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.fluentlenium.core.alert.AlertControl

        alert
      • Methods inherited from interface org.fluentlenium.core.wait.AwaitControl

        await
      • Methods inherited from interface org.fluentlenium.core.capabilities.CapabilitiesControl

        capabilities
      • Methods inherited from interface org.fluentlenium.utils.chromium.ChromiumControl

        getChromiumApi
      • Methods inherited from interface org.fluentlenium.core.components.ComponentInstantiator

        asComponentList, asComponentList, asComponentList, asComponentList, asComponentList, asComponentList, asFluentList, asFluentList, asFluentList, asFluentList, asFluentList, asFluentList, isComponentClass, isComponentListClass, newComponent, newComponentList, newComponentList, newComponentList, newComponentList, newComponentList, newComponentList, newFluent, newFluentList, newFluentList, newFluentList, newFluentList, newFluentList, newFluentList
      • Methods inherited from interface org.fluentlenium.configuration.ConfigurationMutator

        setAwaitAtMost, setAwaitPollingEvery, setBaseUrl, setBrowserTimeout, setBrowserTimeoutRetries, setCapabilities, setConfigurationFactory, setCustomProperty, setDeleteCookies, setDriverLifecycle, setEventsEnabled, setHtmlDumpMode, setHtmlDumpPath, setImplicitlyWait, setPageLoadTimeout, setRemoteUrl, setScreenshotMode, setScreenshotPath, setScriptTimeout, setWebDriver
      • Methods inherited from interface org.fluentlenium.configuration.ConfigurationProperties

        getAwaitAtMost, getAwaitPollingEvery, getBaseUrl, getBrowserTimeout, getBrowserTimeoutRetries, getCapabilities, getConfigurationDefaults, getConfigurationFactory, getCustomProperty, getDeleteCookies, getDriverLifecycle, getEventsEnabled, getHtmlDumpMode, getHtmlDumpPath, getImplicitlyWait, getPageLoadTimeout, getRemoteUrl, getScreenshotMode, getScreenshotPath, getScriptTimeout, getWebDriver
      • Methods inherited from interface org.fluentlenium.core.css.CssControl

        css
      • Methods inherited from interface org.fluentlenium.core.events.EventsControl

        events
      • Methods inherited from interface org.fluentlenium.core.FluentControl

        getConfiguration, getControlContainer
      • Methods inherited from interface org.fluentlenium.core.inject.FluentInjectControl

        inject, injectComponent, newInstance
      • Methods inherited from interface org.fluentlenium.adapter.IFluentAdapter

        initFluent, isFluentControlAvailable, newWebDriver, releaseFluent, setFluentControl
      • Methods inherited from interface org.fluentlenium.core.action.InputControl

        keyboard, mouse
      • Methods inherited from interface org.fluentlenium.core.script.JavascriptControl

        executeAsyncScript, executeScript
      • Methods inherited from interface org.fluentlenium.core.navigation.NavigationControl

        getCookie, getCookies, goTo, goTo, goToInNewTab, pageSource, switchTo, switchTo, switchTo, switchToDefault, url, window
      • Methods inherited from interface org.fluentlenium.core.performance.PerformanceTimingControl

        performanceTiming
      • Methods inherited from interface org.fluentlenium.core.search.SearchControl

        $, $, $, $, $, el, el, el, el, el, find, find, find, find
      • Methods inherited from interface org.fluentlenium.core.SeleniumDriverControl

        getAppiumDriver
      • Methods inherited from interface org.fluentlenium.core.snapshot.SnapshotControl

        canTakeScreenShot, takeHtmlDump, takeHtmlDump, takeScreenshot, takeScreenshot
    • Constructor Detail

      • FluentTestNgSpringTest

        public FluentTestNgSpringTest()
    • Method Detail

      • afterTest

        @AfterTest(alwaysRun=true)
        public void afterTest​(org.testng.ITestContext context)
        After test.
        Parameters:
        context - test context
      • beforeMethod

        @BeforeMethod(alwaysRun=true)
        public void beforeMethod​(java.lang.reflect.Method method,
                                 org.testng.ITestContext context)
        Before test.
        Parameters:
        method - test method
        context - test context
      • afterMethod

        @AfterMethod(alwaysRun=true)
        public void afterMethod​(org.testng.ITestResult result)
        After test method.
        Parameters:
        result - test result
      • afterClass

        @AfterClass(alwaysRun=true)
        public void afterClass()
        After test class.
      • getTestClass

        public java.lang.Class<?> getTestClass()
        Specified by:
        getTestClass in interface org.fluentlenium.adapter.TestRunnerAdapter
      • getTestMethodName

        public java.lang.String getTestMethodName()
        Specified by:
        getTestMethodName in interface org.fluentlenium.adapter.TestRunnerAdapter
      • getClassAnnotation

        public <T extends java.lang.annotation.Annotation> T getClassAnnotation​(java.lang.Class<T> annotation)
        Specified by:
        getClassAnnotation in interface org.fluentlenium.adapter.TestRunnerAdapter
      • getMethodAnnotation

        public <T extends java.lang.annotation.Annotation> T getMethodAnnotation​(java.lang.Class<T> annotation)
        Specified by:
        getMethodAnnotation in interface org.fluentlenium.adapter.TestRunnerAdapter
      • starting

        protected void starting​(java.lang.Class<?> testClass,
                                java.lang.String testName)
        Invoked when a test method is starting.
        Parameters:
        testClass - Test class
        testName - Test name
      • finished

        protected void finished​(java.lang.Class<?> testClass,
                                java.lang.String testName)
        Invoked when a test method has finished (whatever the success of failing status)
        Parameters:
        testClass - Test class
        testName - Test name
      • failed

        protected void failed​(java.lang.Throwable e,
                              java.lang.Class<?> testClass,
                              java.lang.String testName)
        Invoked when a test method has failed (before finished)
        Parameters:
        e - Throwable thrown by the failing test.
        testClass - Test class
        testName - Test name
      • getDriver

        public final org.openqa.selenium.WebDriver getDriver()
        Specified by:
        getDriver in interface org.fluentlenium.adapter.IFluentAdapter
        Specified by:
        getDriver in interface org.fluentlenium.core.SeleniumDriverControl
      • getFluentControl

        public org.fluentlenium.core.inject.ContainerFluentControl getFluentControl()
        Specified by:
        getFluentControl in interface org.fluentlenium.core.FluentControl
        Specified by:
        getFluentControl in interface org.fluentlenium.adapter.IFluentAdapter
      • getControlContainer

        public org.fluentlenium.adapter.FluentControlContainer getControlContainer()
        Specified by:
        getControlContainer in interface org.fluentlenium.core.FluentControl
      • getConfiguration

        public org.fluentlenium.configuration.Configuration getConfiguration()
        Specified by:
        getConfiguration in interface org.fluentlenium.core.FluentControl
      • getAppiumDriver

        public io.appium.java_client.AppiumDriver<?> getAppiumDriver()
        Specified by:
        getAppiumDriver in interface org.fluentlenium.core.SeleniumDriverControl
      • getConfigurationDefaults

        public java.lang.Class<? extends org.fluentlenium.configuration.ConfigurationProperties> getConfigurationDefaults()
        Specified by:
        getConfigurationDefaults in interface org.fluentlenium.configuration.ConfigurationProperties
      • setAwaitPollingEvery

        public void setAwaitPollingEvery​(java.lang.Long awaitPollingEvery)
        Specified by:
        setAwaitPollingEvery in interface org.fluentlenium.configuration.ConfigurationMutator
      • setCustomProperty

        public void setCustomProperty​(java.lang.String key,
                                      java.lang.String value)
        Specified by:
        setCustomProperty in interface org.fluentlenium.configuration.ConfigurationMutator
      • setBrowserTimeoutRetries

        public void setBrowserTimeoutRetries​(java.lang.Integer retriesNumber)
        Specified by:
        setBrowserTimeoutRetries in interface org.fluentlenium.configuration.ConfigurationMutator
      • setWebDriver

        public void setWebDriver​(java.lang.String webDriver)
        Specified by:
        setWebDriver in interface org.fluentlenium.configuration.ConfigurationMutator
      • getDeleteCookies

        public java.lang.Boolean getDeleteCookies()
        Specified by:
        getDeleteCookies in interface org.fluentlenium.configuration.ConfigurationProperties
      • setScreenshotPath

        public void setScreenshotPath​(java.lang.String screenshotPath)
        Specified by:
        setScreenshotPath in interface org.fluentlenium.configuration.ConfigurationMutator
      • getBaseUrl

        public java.lang.String getBaseUrl()
        Specified by:
        getBaseUrl in interface org.fluentlenium.configuration.ConfigurationProperties
      • setAwaitAtMost

        public void setAwaitAtMost​(java.lang.Long awaitAtMost)
        Specified by:
        setAwaitAtMost in interface org.fluentlenium.configuration.ConfigurationMutator
      • getAwaitAtMost

        public java.lang.Long getAwaitAtMost()
        Specified by:
        getAwaitAtMost in interface org.fluentlenium.configuration.ConfigurationProperties
      • getHtmlDumpMode

        public org.fluentlenium.configuration.ConfigurationProperties.TriggerMode getHtmlDumpMode()
        Specified by:
        getHtmlDumpMode in interface org.fluentlenium.configuration.ConfigurationProperties
      • getPageLoadTimeout

        public java.lang.Long getPageLoadTimeout()
        Specified by:
        getPageLoadTimeout in interface org.fluentlenium.configuration.ConfigurationProperties
      • setConfigurationFactory

        public void setConfigurationFactory​(java.lang.Class<? extends org.fluentlenium.configuration.ConfigurationFactory> configurationFactory)
        Specified by:
        setConfigurationFactory in interface org.fluentlenium.configuration.ConfigurationMutator
      • setDriverLifecycle

        public void setDriverLifecycle​(org.fluentlenium.configuration.ConfigurationProperties.DriverLifecycle driverLifecycle)
        Specified by:
        setDriverLifecycle in interface org.fluentlenium.configuration.ConfigurationMutator
      • getRemoteUrl

        public java.lang.String getRemoteUrl()
        Specified by:
        getRemoteUrl in interface org.fluentlenium.configuration.ConfigurationProperties
      • getEventsEnabled

        public java.lang.Boolean getEventsEnabled()
        Specified by:
        getEventsEnabled in interface org.fluentlenium.configuration.ConfigurationProperties
      • setHtmlDumpMode

        public void setHtmlDumpMode​(org.fluentlenium.configuration.ConfigurationProperties.TriggerMode htmlDumpMode)
        Specified by:
        setHtmlDumpMode in interface org.fluentlenium.configuration.ConfigurationMutator
      • getHtmlDumpPath

        public java.lang.String getHtmlDumpPath()
        Specified by:
        getHtmlDumpPath in interface org.fluentlenium.configuration.ConfigurationProperties
      • getAwaitPollingEvery

        public java.lang.Long getAwaitPollingEvery()
        Specified by:
        getAwaitPollingEvery in interface org.fluentlenium.configuration.ConfigurationProperties
      • setScriptTimeout

        public void setScriptTimeout​(java.lang.Long scriptTimeout)
        Specified by:
        setScriptTimeout in interface org.fluentlenium.configuration.ConfigurationMutator
      • getConfigurationFactory

        public java.lang.Class<? extends org.fluentlenium.configuration.ConfigurationFactory> getConfigurationFactory()
        Specified by:
        getConfigurationFactory in interface org.fluentlenium.configuration.ConfigurationProperties
      • getScreenshotPath

        public java.lang.String getScreenshotPath()
        Specified by:
        getScreenshotPath in interface org.fluentlenium.configuration.ConfigurationProperties
      • getBrowserTimeoutRetries

        public java.lang.Integer getBrowserTimeoutRetries()
        Specified by:
        getBrowserTimeoutRetries in interface org.fluentlenium.configuration.ConfigurationProperties
      • setBrowserTimeout

        public void setBrowserTimeout​(java.lang.Long timeout)
        Specified by:
        setBrowserTimeout in interface org.fluentlenium.configuration.ConfigurationMutator
      • setRemoteUrl

        public void setRemoteUrl​(java.lang.String remoteUrl)
        Specified by:
        setRemoteUrl in interface org.fluentlenium.configuration.ConfigurationMutator
      • getWebDriver

        public java.lang.String getWebDriver()
        Specified by:
        getWebDriver in interface org.fluentlenium.configuration.ConfigurationProperties
      • getCustomProperty

        public java.lang.String getCustomProperty​(java.lang.String propertyName)
        Specified by:
        getCustomProperty in interface org.fluentlenium.configuration.ConfigurationProperties
      • setDeleteCookies

        public void setDeleteCookies​(java.lang.Boolean deleteCookies)
        Specified by:
        setDeleteCookies in interface org.fluentlenium.configuration.ConfigurationMutator
      • setEventsEnabled

        public void setEventsEnabled​(java.lang.Boolean eventsEnabled)
        Specified by:
        setEventsEnabled in interface org.fluentlenium.configuration.ConfigurationMutator
      • setHtmlDumpPath

        public void setHtmlDumpPath​(java.lang.String htmlDumpPath)
        Specified by:
        setHtmlDumpPath in interface org.fluentlenium.configuration.ConfigurationMutator
      • setPageLoadTimeout

        public void setPageLoadTimeout​(java.lang.Long pageLoadTimeout)
        Specified by:
        setPageLoadTimeout in interface org.fluentlenium.configuration.ConfigurationMutator
      • setScreenshotMode

        public void setScreenshotMode​(org.fluentlenium.configuration.ConfigurationProperties.TriggerMode screenshotMode)
        Specified by:
        setScreenshotMode in interface org.fluentlenium.configuration.ConfigurationMutator
      • getBrowserTimeout

        public java.lang.Long getBrowserTimeout()
        Specified by:
        getBrowserTimeout in interface org.fluentlenium.configuration.ConfigurationProperties
      • setBaseUrl

        public void setBaseUrl​(java.lang.String baseUrl)
        Specified by:
        setBaseUrl in interface org.fluentlenium.configuration.ConfigurationMutator
      • getDriverLifecycle

        public org.fluentlenium.configuration.ConfigurationProperties.DriverLifecycle getDriverLifecycle()
        Specified by:
        getDriverLifecycle in interface org.fluentlenium.configuration.ConfigurationProperties
      • getImplicitlyWait

        public java.lang.Long getImplicitlyWait()
        Specified by:
        getImplicitlyWait in interface org.fluentlenium.configuration.ConfigurationProperties
      • setImplicitlyWait

        public void setImplicitlyWait​(java.lang.Long implicitlyWait)
        Specified by:
        setImplicitlyWait in interface org.fluentlenium.configuration.ConfigurationMutator
      • getCapabilities

        public org.openqa.selenium.Capabilities getCapabilities()
        Specified by:
        getCapabilities in interface org.fluentlenium.configuration.ConfigurationProperties
      • getScriptTimeout

        public java.lang.Long getScriptTimeout()
        Specified by:
        getScriptTimeout in interface org.fluentlenium.configuration.ConfigurationProperties
      • setCapabilities

        public void setCapabilities​(org.openqa.selenium.Capabilities capabilities)
        Specified by:
        setCapabilities in interface org.fluentlenium.configuration.ConfigurationMutator
      • getScreenshotMode

        public org.fluentlenium.configuration.ConfigurationProperties.TriggerMode getScreenshotMode()
        Specified by:
        getScreenshotMode in interface org.fluentlenium.configuration.ConfigurationProperties
      • takeScreenshot

        public void takeScreenshot​(java.lang.String fileName)
        Specified by:
        takeScreenshot in interface org.fluentlenium.core.snapshot.SnapshotControl
      • getChromiumApi

        public final org.fluentlenium.utils.chromium.ChromiumApi getChromiumApi()
        Specified by:
        getChromiumApi in interface org.fluentlenium.utils.chromium.ChromiumControl
      • asFluentList

        public org.fluentlenium.core.domain.FluentList<org.fluentlenium.core.domain.FluentWebElement> asFluentList​(org.openqa.selenium.WebElement... elements)
        Specified by:
        asFluentList in interface org.fluentlenium.core.components.ComponentInstantiator
      • goTo

        public <P extends org.fluentlenium.core.FluentPage> P goTo​(P page)
        Specified by:
        goTo in interface org.fluentlenium.core.navigation.NavigationControl
      • executeScript

        public org.fluentlenium.core.script.FluentJavascript executeScript​(java.lang.String script,
                                                                           java.lang.Object... args)
        Specified by:
        executeScript in interface org.fluentlenium.core.script.JavascriptControl
      • asComponentList

        public <L extends java.util.List<T>,​T> L asComponentList​(java.lang.Class<L> listClass,
                                                                       java.lang.Class<T> componentClass,
                                                                       java.lang.Iterable<org.openqa.selenium.WebElement> elements)
        Specified by:
        asComponentList in interface org.fluentlenium.core.components.ComponentInstantiator
      • switchToDefault

        public void switchToDefault()
        Specified by:
        switchToDefault in interface org.fluentlenium.core.navigation.NavigationControl
      • asComponentList

        public <T> org.fluentlenium.core.domain.ComponentList<T> asComponentList​(java.lang.Class<T> componentClass,
                                                                                 org.openqa.selenium.WebElement... elements)
        Specified by:
        asComponentList in interface org.fluentlenium.core.components.ComponentInstantiator
      • find

        public org.fluentlenium.core.domain.FluentList<org.fluentlenium.core.domain.FluentWebElement> find​(org.openqa.selenium.By locator,
                                                                                                           org.fluentlenium.core.search.SearchFilter... filters)
        Specified by:
        find in interface org.fluentlenium.core.search.SearchControl<org.fluentlenium.core.domain.FluentWebElement>
      • goTo

        public void goTo​(java.lang.String url)
        Specified by:
        goTo in interface org.fluentlenium.core.navigation.NavigationControl
      • switchTo

        public void switchTo()
        Specified by:
        switchTo in interface org.fluentlenium.core.navigation.NavigationControl
      • takeHtmlDump

        public void takeHtmlDump()
        Specified by:
        takeHtmlDump in interface org.fluentlenium.core.snapshot.SnapshotControl
      • injectComponent

        public org.fluentlenium.core.inject.ContainerContext injectComponent​(java.lang.Object componentContainer,
                                                                             java.lang.Object parentContainer,
                                                                             org.openqa.selenium.SearchContext context)
        Specified by:
        injectComponent in interface org.fluentlenium.core.inject.FluentInjectControl
      • switchTo

        public void switchTo​(org.fluentlenium.core.domain.FluentList<? extends org.fluentlenium.core.domain.FluentWebElement> elements)
        Specified by:
        switchTo in interface org.fluentlenium.core.navigation.NavigationControl
      • canTakeScreenShot

        public boolean canTakeScreenShot()
        Specified by:
        canTakeScreenShot in interface org.fluentlenium.core.snapshot.SnapshotControl
      • newComponentList

        public <L extends java.util.List<T>,​T> L newComponentList​(java.lang.Class<L> listClass,
                                                                        java.lang.Class<T> componentClass)
        Specified by:
        newComponentList in interface org.fluentlenium.core.components.ComponentInstantiator
      • asFluentList

        public <T extends org.fluentlenium.core.domain.FluentWebElement> org.fluentlenium.core.domain.FluentList<T> asFluentList​(java.lang.Class<T> componentClass,
                                                                                                                                 java.lang.Iterable<org.openqa.selenium.WebElement> elements)
        Specified by:
        asFluentList in interface org.fluentlenium.core.components.ComponentInstantiator
      • newFluentList

        public <T extends org.fluentlenium.core.domain.FluentWebElement> org.fluentlenium.core.domain.FluentList<T> newFluentList​(java.lang.Class<T> componentClass,
                                                                                                                                  java.util.List<T> elements)
        Specified by:
        newFluentList in interface org.fluentlenium.core.components.ComponentInstantiator
      • capabilities

        public org.openqa.selenium.Capabilities capabilities()
        Specified by:
        capabilities in interface org.fluentlenium.core.capabilities.CapabilitiesControl
      • newFluentList

        public <T extends org.fluentlenium.core.domain.FluentWebElement> org.fluentlenium.core.domain.FluentList<T> newFluentList​(java.lang.Class<T> componentClass)
        Specified by:
        newFluentList in interface org.fluentlenium.core.components.ComponentInstantiator
      • newComponentList

        public <L extends java.util.List<T>,​T> L newComponentList​(java.lang.Class<L> listClass,
                                                                        java.lang.Class<T> componentClass,
                                                                        T... componentsList)
        Specified by:
        newComponentList in interface org.fluentlenium.core.components.ComponentInstantiator
      • newFluentList

        public org.fluentlenium.core.domain.FluentList<org.fluentlenium.core.domain.FluentWebElement> newFluentList()
        Specified by:
        newFluentList in interface org.fluentlenium.core.components.ComponentInstantiator
      • asComponentList

        public <T> org.fluentlenium.core.domain.ComponentList asComponentList​(java.lang.Class<T> componentClass,
                                                                              java.lang.Iterable<org.openqa.selenium.WebElement> elements)
        Specified by:
        asComponentList in interface org.fluentlenium.core.components.ComponentInstantiator
      • css

        public org.fluentlenium.core.css.CssSupport css()
        Specified by:
        css in interface org.fluentlenium.core.css.CssControl
      • asFluentList

        public <T extends org.fluentlenium.core.domain.FluentWebElement> org.fluentlenium.core.domain.FluentList<T> asFluentList​(java.lang.Class<T> componentClass,
                                                                                                                                 java.util.List<org.openqa.selenium.WebElement> elements)
        Specified by:
        asFluentList in interface org.fluentlenium.core.components.ComponentInstantiator
      • find

        public org.fluentlenium.core.domain.FluentList<org.fluentlenium.core.domain.FluentWebElement> find​(java.util.List<org.openqa.selenium.WebElement> rawElements)
        Specified by:
        find in interface org.fluentlenium.core.search.SearchControl<org.fluentlenium.core.domain.FluentWebElement>
      • takeHtmlDump

        public void takeHtmlDump​(java.lang.String fileName)
        Specified by:
        takeHtmlDump in interface org.fluentlenium.core.snapshot.SnapshotControl
      • find

        public org.fluentlenium.core.domain.FluentList<org.fluentlenium.core.domain.FluentWebElement> find​(java.lang.String selector,
                                                                                                           org.fluentlenium.core.search.SearchFilter... filters)
        Specified by:
        find in interface org.fluentlenium.core.search.SearchControl<org.fluentlenium.core.domain.FluentWebElement>
      • newComponentList

        public <T> org.fluentlenium.core.domain.ComponentList<T> newComponentList​(java.lang.Class<T> componentClass,
                                                                                  java.util.List<T> componentsList)
        Specified by:
        newComponentList in interface org.fluentlenium.core.components.ComponentInstantiator
      • asComponentList

        public <L extends java.util.List<T>,​T> L asComponentList​(java.lang.Class<L> listClass,
                                                                       java.lang.Class<T> componentClass,
                                                                       org.openqa.selenium.WebElement... elements)
        Specified by:
        asComponentList in interface org.fluentlenium.core.components.ComponentInstantiator
      • asComponentList

        public <T> org.fluentlenium.core.domain.ComponentList<T> asComponentList​(java.lang.Class<T> componentClass,
                                                                                 java.util.List<org.openqa.selenium.WebElement> elements)
        Specified by:
        asComponentList in interface org.fluentlenium.core.components.ComponentInstantiator
      • goToInNewTab

        public void goToInNewTab​(java.lang.String url)
        Specified by:
        goToInNewTab in interface org.fluentlenium.core.navigation.NavigationControl
      • window

        public org.fluentlenium.core.action.WindowAction window()
        Specified by:
        window in interface org.fluentlenium.core.navigation.NavigationControl
      • newComponentList

        public <T> org.fluentlenium.core.domain.ComponentList<T> newComponentList​(java.lang.Class<T> componentClass)
        Specified by:
        newComponentList in interface org.fluentlenium.core.components.ComponentInstantiator
      • newFluent

        public org.fluentlenium.core.domain.FluentWebElement newFluent​(org.openqa.selenium.WebElement element)
        Specified by:
        newFluent in interface org.fluentlenium.core.components.ComponentInstantiator
      • alert

        public org.fluentlenium.core.alert.Alert alert()
        Specified by:
        alert in interface org.fluentlenium.core.alert.AlertControl
      • keyboard

        public org.fluentlenium.core.action.KeyboardActions keyboard()
        Specified by:
        keyboard in interface org.fluentlenium.core.action.InputControl
      • await

        public org.fluentlenium.core.wait.FluentWait await()
        Specified by:
        await in interface org.fluentlenium.core.wait.AwaitControl
      • isComponentClass

        public boolean isComponentClass​(java.lang.Class<?> componentClass)
        Specified by:
        isComponentClass in interface org.fluentlenium.core.components.ComponentInstantiator
      • newInstance

        public <T> T newInstance​(java.lang.Class<T> cls)
        Specified by:
        newInstance in interface org.fluentlenium.core.inject.FluentInjectControl
      • asFluentList

        public <T extends org.fluentlenium.core.domain.FluentWebElement> org.fluentlenium.core.domain.FluentList<T> asFluentList​(java.lang.Class<T> componentClass,
                                                                                                                                 org.openqa.selenium.WebElement... elements)
        Specified by:
        asFluentList in interface org.fluentlenium.core.components.ComponentInstantiator
      • asComponentList

        public <L extends java.util.List<T>,​T> L asComponentList​(java.lang.Class<L> listClass,
                                                                       java.lang.Class<T> componentClass,
                                                                       java.util.List<org.openqa.selenium.WebElement> elements)
        Specified by:
        asComponentList in interface org.fluentlenium.core.components.ComponentInstantiator
      • mouse

        public org.fluentlenium.core.action.MouseActions mouse()
        Specified by:
        mouse in interface org.fluentlenium.core.action.InputControl
      • inject

        public org.fluentlenium.core.inject.ContainerContext inject​(java.lang.Object container)
        Specified by:
        inject in interface org.fluentlenium.core.inject.FluentInjectControl
      • takeScreenshot

        public void takeScreenshot()
        Specified by:
        takeScreenshot in interface org.fluentlenium.core.snapshot.SnapshotControl
      • getCookies

        public java.util.Set<org.openqa.selenium.Cookie> getCookies()
        Specified by:
        getCookies in interface org.fluentlenium.core.navigation.NavigationControl
      • asFluentList

        public org.fluentlenium.core.domain.FluentList<org.fluentlenium.core.domain.FluentWebElement> asFluentList​(java.lang.Iterable<org.openqa.selenium.WebElement> elements)
        Specified by:
        asFluentList in interface org.fluentlenium.core.components.ComponentInstantiator
      • getCookie

        public org.openqa.selenium.Cookie getCookie​(java.lang.String name)
        Specified by:
        getCookie in interface org.fluentlenium.core.navigation.NavigationControl
      • newComponentList

        public <T> org.fluentlenium.core.domain.ComponentList<T> newComponentList​(java.lang.Class<T> componentClass,
                                                                                  T... componentsList)
        Specified by:
        newComponentList in interface org.fluentlenium.core.components.ComponentInstantiator
      • find

        public org.fluentlenium.core.domain.FluentList<org.fluentlenium.core.domain.FluentWebElement> find​(org.fluentlenium.core.search.SearchFilter... filters)
        Specified by:
        find in interface org.fluentlenium.core.search.SearchControl<org.fluentlenium.core.domain.FluentWebElement>
      • newFluentList

        public org.fluentlenium.core.domain.FluentList<org.fluentlenium.core.domain.FluentWebElement> newFluentList​(org.fluentlenium.core.domain.FluentWebElement... elements)
        Specified by:
        newFluentList in interface org.fluentlenium.core.components.ComponentInstantiator
      • newComponentList

        public <L extends java.util.List<T>,​T> L newComponentList​(java.lang.Class<L> listClass,
                                                                        java.lang.Class<T> componentClass,
                                                                        java.util.List<T> componentsList)
        Specified by:
        newComponentList in interface org.fluentlenium.core.components.ComponentInstantiator
      • switchTo

        public void switchTo​(org.fluentlenium.core.domain.FluentWebElement element)
        Specified by:
        switchTo in interface org.fluentlenium.core.navigation.NavigationControl
      • pageSource

        public java.lang.String pageSource()
        Specified by:
        pageSource in interface org.fluentlenium.core.navigation.NavigationControl
      • isComponentListClass

        public boolean isComponentListClass​(java.lang.Class<? extends java.util.List<?>> componentListClass)
        Specified by:
        isComponentListClass in interface org.fluentlenium.core.components.ComponentInstantiator
      • newFluentList

        public org.fluentlenium.core.domain.FluentList<org.fluentlenium.core.domain.FluentWebElement> newFluentList​(java.util.List<org.fluentlenium.core.domain.FluentWebElement> elements)
        Specified by:
        newFluentList in interface org.fluentlenium.core.components.ComponentInstantiator
      • executeAsyncScript

        public org.fluentlenium.core.script.FluentJavascript executeAsyncScript​(java.lang.String script,
                                                                                java.lang.Object... args)
        Specified by:
        executeAsyncScript in interface org.fluentlenium.core.script.JavascriptControl
      • url

        public java.lang.String url()
        Specified by:
        url in interface org.fluentlenium.core.navigation.NavigationControl
      • newComponent

        public <T> T newComponent​(java.lang.Class<T> componentClass,
                                  org.openqa.selenium.WebElement element)
        Specified by:
        newComponent in interface org.fluentlenium.core.components.ComponentInstantiator
      • newFluentList

        public <T extends org.fluentlenium.core.domain.FluentWebElement> org.fluentlenium.core.domain.FluentList<T> newFluentList​(java.lang.Class<T> componentClass,
                                                                                                                                  T... elements)
        Specified by:
        newFluentList in interface org.fluentlenium.core.components.ComponentInstantiator
      • asFluentList

        public org.fluentlenium.core.domain.FluentList<org.fluentlenium.core.domain.FluentWebElement> asFluentList​(java.util.List<org.openqa.selenium.WebElement> elements)
        Specified by:
        asFluentList in interface org.fluentlenium.core.components.ComponentInstantiator
      • el

        public org.fluentlenium.core.domain.FluentWebElement el​(org.openqa.selenium.WebElement rawElement)
        Specified by:
        el in interface org.fluentlenium.core.search.SearchControl<org.fluentlenium.core.domain.FluentWebElement>
      • events

        public org.fluentlenium.core.events.EventsRegistry events()
        Specified by:
        events in interface org.fluentlenium.core.events.EventsControl
      • performanceTiming

        public org.fluentlenium.core.performance.PerformanceTiming performanceTiming()
        Specified by:
        performanceTiming in interface org.fluentlenium.core.performance.PerformanceTimingControl