Package org.fluentlenium.adapter.testng
Class FluentTestNgSpringTest
- java.lang.Object
-
- org.springframework.test.context.testng.AbstractTestNGSpringContextTests
-
- org.fluentlenium.adapter.testng.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.AbstractTestNGSpringContextTestsTestNG FluentLenium Test Runner Adapter.Extends this class to provide FluentLenium support to your TestNG Test class.
-
-
Constructor Summary
Constructors Constructor Description FluentTestNgSpringTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterClass()After test class.voidafterMethod(org.testng.ITestResult result)After test method.voidafterTest(org.testng.ITestContext context)After test.org.fluentlenium.core.alert.Alertalert()<L extends java.util.List<T>,T>
LasComponentList(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>
LasComponentList(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>
LasComponentList(java.lang.Class<L> listClass, java.lang.Class<T> componentClass, org.openqa.selenium.WebElement... elements)<T> org.fluentlenium.core.domain.ComponentListasComponentList(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.FluentWaitawait()voidbeforeMethod(java.lang.reflect.Method method, org.testng.ITestContext context)Before test.booleancanTakeScreenShot()org.openqa.selenium.Capabilitiescapabilities()org.fluentlenium.core.css.CssSupportcss()org.fluentlenium.core.domain.FluentWebElementel(org.openqa.selenium.WebElement rawElement)org.fluentlenium.core.events.EventsRegistryevents()org.fluentlenium.core.script.FluentJavascriptexecuteAsyncScript(java.lang.String script, java.lang.Object... args)org.fluentlenium.core.script.FluentJavascriptexecuteScript(java.lang.String script, java.lang.Object... args)protected voidfailed(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 voidfinished(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.LonggetAwaitAtMost()java.lang.LonggetAwaitPollingEvery()java.lang.StringgetBaseUrl()java.lang.LonggetBrowserTimeout()java.lang.IntegergetBrowserTimeoutRetries()org.openqa.selenium.CapabilitiesgetCapabilities()org.fluentlenium.utils.chromium.ChromiumApigetChromiumApi()<T extends java.lang.annotation.Annotation>
TgetClassAnnotation(java.lang.Class<T> annotation)org.fluentlenium.configuration.ConfigurationgetConfiguration()java.lang.Class<? extends org.fluentlenium.configuration.ConfigurationProperties>getConfigurationDefaults()java.lang.Class<? extends org.fluentlenium.configuration.ConfigurationFactory>getConfigurationFactory()org.fluentlenium.adapter.FluentControlContainergetControlContainer()org.openqa.selenium.CookiegetCookie(java.lang.String name)java.util.Set<org.openqa.selenium.Cookie>getCookies()java.lang.StringgetCustomProperty(java.lang.String propertyName)java.lang.BooleangetDeleteCookies()org.openqa.selenium.WebDrivergetDriver()org.fluentlenium.configuration.ConfigurationProperties.DriverLifecyclegetDriverLifecycle()java.lang.BooleangetEventsEnabled()org.fluentlenium.core.inject.ContainerFluentControlgetFluentControl()org.fluentlenium.configuration.ConfigurationProperties.TriggerModegetHtmlDumpMode()java.lang.StringgetHtmlDumpPath()java.lang.LonggetImplicitlyWait()<T extends java.lang.annotation.Annotation>
TgetMethodAnnotation(java.lang.Class<T> annotation)java.lang.LonggetPageLoadTimeout()java.lang.StringgetRemoteUrl()org.fluentlenium.configuration.ConfigurationProperties.TriggerModegetScreenshotMode()java.lang.StringgetScreenshotPath()java.lang.LonggetScriptTimeout()java.lang.Class<?>getTestClass()java.lang.StringgetTestMethodName()java.lang.StringgetWebDriver()voidgoTo(java.lang.String url)<P extends org.fluentlenium.core.FluentPage>
PgoTo(P page)voidgoToInNewTab(java.lang.String url)org.fluentlenium.core.inject.ContainerContextinject(java.lang.Object container)org.fluentlenium.core.inject.ContainerContextinjectComponent(java.lang.Object componentContainer, java.lang.Object parentContainer, org.openqa.selenium.SearchContext context)booleanisComponentClass(java.lang.Class<?> componentClass)booleanisComponentListClass(java.lang.Class<? extends java.util.List<?>> componentListClass)org.fluentlenium.core.action.KeyboardActionskeyboard()org.fluentlenium.core.action.MouseActionsmouse()<T> TnewComponent(java.lang.Class<T> componentClass, org.openqa.selenium.WebElement element)<L extends java.util.List<T>,T>
LnewComponentList(java.lang.Class<L> listClass, java.lang.Class<T> componentClass)<L extends java.util.List<T>,T>
LnewComponentList(java.lang.Class<L> listClass, java.lang.Class<T> componentClass, java.util.List<T> componentsList)<L extends java.util.List<T>,T>
LnewComponentList(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.FluentWebElementnewFluent(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> TnewInstance(java.lang.Class<T> cls)java.lang.StringpageSource()org.fluentlenium.core.performance.PerformanceTimingperformanceTiming()voidsetAwaitAtMost(java.lang.Long awaitAtMost)voidsetAwaitPollingEvery(java.lang.Long awaitPollingEvery)voidsetBaseUrl(java.lang.String baseUrl)voidsetBrowserTimeout(java.lang.Long timeout)voidsetBrowserTimeoutRetries(java.lang.Integer retriesNumber)voidsetCapabilities(org.openqa.selenium.Capabilities capabilities)voidsetConfigurationFactory(java.lang.Class<? extends org.fluentlenium.configuration.ConfigurationFactory> configurationFactory)voidsetCustomProperty(java.lang.String key, java.lang.String value)voidsetDeleteCookies(java.lang.Boolean deleteCookies)voidsetDriverLifecycle(org.fluentlenium.configuration.ConfigurationProperties.DriverLifecycle driverLifecycle)voidsetEventsEnabled(java.lang.Boolean eventsEnabled)voidsetHtmlDumpMode(org.fluentlenium.configuration.ConfigurationProperties.TriggerMode htmlDumpMode)voidsetHtmlDumpPath(java.lang.String htmlDumpPath)voidsetImplicitlyWait(java.lang.Long implicitlyWait)voidsetPageLoadTimeout(java.lang.Long pageLoadTimeout)voidsetRemoteUrl(java.lang.String remoteUrl)voidsetScreenshotMode(org.fluentlenium.configuration.ConfigurationProperties.TriggerMode screenshotMode)voidsetScreenshotPath(java.lang.String screenshotPath)voidsetScriptTimeout(java.lang.Long scriptTimeout)voidsetWebDriver(java.lang.String webDriver)protected voidstarting(java.lang.Class<?> testClass, java.lang.String testName)Invoked when a test method is starting.voidswitchTo()voidswitchTo(org.fluentlenium.core.domain.FluentList<? extends org.fluentlenium.core.domain.FluentWebElement> elements)voidswitchTo(org.fluentlenium.core.domain.FluentWebElement element)voidswitchToDefault()voidtakeHtmlDump()voidtakeHtmlDump(java.lang.String fileName)voidtakeScreenshot()voidtakeScreenshot(java.lang.String fileName)java.lang.Stringurl()org.fluentlenium.core.action.WindowActionwindow()-
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.capabilities.CapabilitiesControl
capabilities
-
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.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.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
-
-
-
-
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 methodcontext- 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:
getTestClassin interfaceorg.fluentlenium.adapter.TestRunnerAdapter
-
getTestMethodName
public java.lang.String getTestMethodName()
- Specified by:
getTestMethodNamein interfaceorg.fluentlenium.adapter.TestRunnerAdapter
-
getClassAnnotation
public <T extends java.lang.annotation.Annotation> T getClassAnnotation(java.lang.Class<T> annotation)
- Specified by:
getClassAnnotationin interfaceorg.fluentlenium.adapter.TestRunnerAdapter
-
getMethodAnnotation
public <T extends java.lang.annotation.Annotation> T getMethodAnnotation(java.lang.Class<T> annotation)
- Specified by:
getMethodAnnotationin interfaceorg.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 classtestName- 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 classtestName- 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 classtestName- Test name
-
getDriver
public final org.openqa.selenium.WebDriver getDriver()
- Specified by:
getDriverin interfaceorg.fluentlenium.adapter.IFluentAdapter- Specified by:
getDriverin interfaceorg.fluentlenium.core.SeleniumDriverControl
-
getFluentControl
public org.fluentlenium.core.inject.ContainerFluentControl getFluentControl()
- Specified by:
getFluentControlin interfaceorg.fluentlenium.core.FluentControl- Specified by:
getFluentControlin interfaceorg.fluentlenium.adapter.IFluentAdapter
-
getControlContainer
public org.fluentlenium.adapter.FluentControlContainer getControlContainer()
- Specified by:
getControlContainerin interfaceorg.fluentlenium.core.FluentControl
-
getConfiguration
public org.fluentlenium.configuration.Configuration getConfiguration()
- Specified by:
getConfigurationin interfaceorg.fluentlenium.core.FluentControl
-
getAppiumDriver
public io.appium.java_client.AppiumDriver<?> getAppiumDriver()
- Specified by:
getAppiumDriverin interfaceorg.fluentlenium.core.SeleniumDriverControl
-
getConfigurationDefaults
public java.lang.Class<? extends org.fluentlenium.configuration.ConfigurationProperties> getConfigurationDefaults()
- Specified by:
getConfigurationDefaultsin interfaceorg.fluentlenium.configuration.ConfigurationProperties
-
setAwaitPollingEvery
public void setAwaitPollingEvery(java.lang.Long awaitPollingEvery)
- Specified by:
setAwaitPollingEveryin interfaceorg.fluentlenium.configuration.ConfigurationMutator
-
setCustomProperty
public void setCustomProperty(java.lang.String key, java.lang.String value)- Specified by:
setCustomPropertyin interfaceorg.fluentlenium.configuration.ConfigurationMutator
-
setBrowserTimeoutRetries
public void setBrowserTimeoutRetries(java.lang.Integer retriesNumber)
- Specified by:
setBrowserTimeoutRetriesin interfaceorg.fluentlenium.configuration.ConfigurationMutator
-
setWebDriver
public void setWebDriver(java.lang.String webDriver)
- Specified by:
setWebDriverin interfaceorg.fluentlenium.configuration.ConfigurationMutator
-
getDeleteCookies
public java.lang.Boolean getDeleteCookies()
- Specified by:
getDeleteCookiesin interfaceorg.fluentlenium.configuration.ConfigurationProperties
-
setScreenshotPath
public void setScreenshotPath(java.lang.String screenshotPath)
- Specified by:
setScreenshotPathin interfaceorg.fluentlenium.configuration.ConfigurationMutator
-
getBaseUrl
public java.lang.String getBaseUrl()
- Specified by:
getBaseUrlin interfaceorg.fluentlenium.configuration.ConfigurationProperties
-
setAwaitAtMost
public void setAwaitAtMost(java.lang.Long awaitAtMost)
- Specified by:
setAwaitAtMostin interfaceorg.fluentlenium.configuration.ConfigurationMutator
-
getAwaitAtMost
public java.lang.Long getAwaitAtMost()
- Specified by:
getAwaitAtMostin interfaceorg.fluentlenium.configuration.ConfigurationProperties
-
getHtmlDumpMode
public org.fluentlenium.configuration.ConfigurationProperties.TriggerMode getHtmlDumpMode()
- Specified by:
getHtmlDumpModein interfaceorg.fluentlenium.configuration.ConfigurationProperties
-
getPageLoadTimeout
public java.lang.Long getPageLoadTimeout()
- Specified by:
getPageLoadTimeoutin interfaceorg.fluentlenium.configuration.ConfigurationProperties
-
setConfigurationFactory
public void setConfigurationFactory(java.lang.Class<? extends org.fluentlenium.configuration.ConfigurationFactory> configurationFactory)
- Specified by:
setConfigurationFactoryin interfaceorg.fluentlenium.configuration.ConfigurationMutator
-
setDriverLifecycle
public void setDriverLifecycle(org.fluentlenium.configuration.ConfigurationProperties.DriverLifecycle driverLifecycle)
- Specified by:
setDriverLifecyclein interfaceorg.fluentlenium.configuration.ConfigurationMutator
-
getRemoteUrl
public java.lang.String getRemoteUrl()
- Specified by:
getRemoteUrlin interfaceorg.fluentlenium.configuration.ConfigurationProperties
-
getEventsEnabled
public java.lang.Boolean getEventsEnabled()
- Specified by:
getEventsEnabledin interfaceorg.fluentlenium.configuration.ConfigurationProperties
-
setHtmlDumpMode
public void setHtmlDumpMode(org.fluentlenium.configuration.ConfigurationProperties.TriggerMode htmlDumpMode)
- Specified by:
setHtmlDumpModein interfaceorg.fluentlenium.configuration.ConfigurationMutator
-
getHtmlDumpPath
public java.lang.String getHtmlDumpPath()
- Specified by:
getHtmlDumpPathin interfaceorg.fluentlenium.configuration.ConfigurationProperties
-
getAwaitPollingEvery
public java.lang.Long getAwaitPollingEvery()
- Specified by:
getAwaitPollingEveryin interfaceorg.fluentlenium.configuration.ConfigurationProperties
-
setScriptTimeout
public void setScriptTimeout(java.lang.Long scriptTimeout)
- Specified by:
setScriptTimeoutin interfaceorg.fluentlenium.configuration.ConfigurationMutator
-
getConfigurationFactory
public java.lang.Class<? extends org.fluentlenium.configuration.ConfigurationFactory> getConfigurationFactory()
- Specified by:
getConfigurationFactoryin interfaceorg.fluentlenium.configuration.ConfigurationProperties
-
getScreenshotPath
public java.lang.String getScreenshotPath()
- Specified by:
getScreenshotPathin interfaceorg.fluentlenium.configuration.ConfigurationProperties
-
getBrowserTimeoutRetries
public java.lang.Integer getBrowserTimeoutRetries()
- Specified by:
getBrowserTimeoutRetriesin interfaceorg.fluentlenium.configuration.ConfigurationProperties
-
setBrowserTimeout
public void setBrowserTimeout(java.lang.Long timeout)
- Specified by:
setBrowserTimeoutin interfaceorg.fluentlenium.configuration.ConfigurationMutator
-
setRemoteUrl
public void setRemoteUrl(java.lang.String remoteUrl)
- Specified by:
setRemoteUrlin interfaceorg.fluentlenium.configuration.ConfigurationMutator
-
getWebDriver
public java.lang.String getWebDriver()
- Specified by:
getWebDriverin interfaceorg.fluentlenium.configuration.ConfigurationProperties
-
getCustomProperty
public java.lang.String getCustomProperty(java.lang.String propertyName)
- Specified by:
getCustomPropertyin interfaceorg.fluentlenium.configuration.ConfigurationProperties
-
setDeleteCookies
public void setDeleteCookies(java.lang.Boolean deleteCookies)
- Specified by:
setDeleteCookiesin interfaceorg.fluentlenium.configuration.ConfigurationMutator
-
setEventsEnabled
public void setEventsEnabled(java.lang.Boolean eventsEnabled)
- Specified by:
setEventsEnabledin interfaceorg.fluentlenium.configuration.ConfigurationMutator
-
setHtmlDumpPath
public void setHtmlDumpPath(java.lang.String htmlDumpPath)
- Specified by:
setHtmlDumpPathin interfaceorg.fluentlenium.configuration.ConfigurationMutator
-
setPageLoadTimeout
public void setPageLoadTimeout(java.lang.Long pageLoadTimeout)
- Specified by:
setPageLoadTimeoutin interfaceorg.fluentlenium.configuration.ConfigurationMutator
-
setScreenshotMode
public void setScreenshotMode(org.fluentlenium.configuration.ConfigurationProperties.TriggerMode screenshotMode)
- Specified by:
setScreenshotModein interfaceorg.fluentlenium.configuration.ConfigurationMutator
-
getBrowserTimeout
public java.lang.Long getBrowserTimeout()
- Specified by:
getBrowserTimeoutin interfaceorg.fluentlenium.configuration.ConfigurationProperties
-
setBaseUrl
public void setBaseUrl(java.lang.String baseUrl)
- Specified by:
setBaseUrlin interfaceorg.fluentlenium.configuration.ConfigurationMutator
-
getDriverLifecycle
public org.fluentlenium.configuration.ConfigurationProperties.DriverLifecycle getDriverLifecycle()
- Specified by:
getDriverLifecyclein interfaceorg.fluentlenium.configuration.ConfigurationProperties
-
getImplicitlyWait
public java.lang.Long getImplicitlyWait()
- Specified by:
getImplicitlyWaitin interfaceorg.fluentlenium.configuration.ConfigurationProperties
-
setImplicitlyWait
public void setImplicitlyWait(java.lang.Long implicitlyWait)
- Specified by:
setImplicitlyWaitin interfaceorg.fluentlenium.configuration.ConfigurationMutator
-
getCapabilities
public org.openqa.selenium.Capabilities getCapabilities()
- Specified by:
getCapabilitiesin interfaceorg.fluentlenium.configuration.ConfigurationProperties
-
getScriptTimeout
public java.lang.Long getScriptTimeout()
- Specified by:
getScriptTimeoutin interfaceorg.fluentlenium.configuration.ConfigurationProperties
-
setCapabilities
public void setCapabilities(org.openqa.selenium.Capabilities capabilities)
- Specified by:
setCapabilitiesin interfaceorg.fluentlenium.configuration.ConfigurationMutator
-
getScreenshotMode
public org.fluentlenium.configuration.ConfigurationProperties.TriggerMode getScreenshotMode()
- Specified by:
getScreenshotModein interfaceorg.fluentlenium.configuration.ConfigurationProperties
-
takeScreenshot
public void takeScreenshot(java.lang.String fileName)
- Specified by:
takeScreenshotin interfaceorg.fluentlenium.core.snapshot.SnapshotControl
-
getChromiumApi
public final org.fluentlenium.utils.chromium.ChromiumApi getChromiumApi()
- Specified by:
getChromiumApiin interfaceorg.fluentlenium.utils.chromium.ChromiumControl
-
asFluentList
public org.fluentlenium.core.domain.FluentList<org.fluentlenium.core.domain.FluentWebElement> asFluentList(org.openqa.selenium.WebElement... elements)
- Specified by:
asFluentListin interfaceorg.fluentlenium.core.components.ComponentInstantiator
-
goTo
public <P extends org.fluentlenium.core.FluentPage> P goTo(P page)
- Specified by:
goToin interfaceorg.fluentlenium.core.navigation.NavigationControl
-
executeScript
public org.fluentlenium.core.script.FluentJavascript executeScript(java.lang.String script, java.lang.Object... args)- Specified by:
executeScriptin interfaceorg.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:
asComponentListin interfaceorg.fluentlenium.core.components.ComponentInstantiator
-
switchToDefault
public void switchToDefault()
- Specified by:
switchToDefaultin interfaceorg.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:
asComponentListin interfaceorg.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:
findin interfaceorg.fluentlenium.core.search.SearchControl<org.fluentlenium.core.domain.FluentWebElement>
-
goTo
public void goTo(java.lang.String url)
- Specified by:
goToin interfaceorg.fluentlenium.core.navigation.NavigationControl
-
switchTo
public void switchTo()
- Specified by:
switchToin interfaceorg.fluentlenium.core.navigation.NavigationControl
-
takeHtmlDump
public void takeHtmlDump()
- Specified by:
takeHtmlDumpin interfaceorg.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:
injectComponentin interfaceorg.fluentlenium.core.inject.FluentInjectControl
-
switchTo
public void switchTo(org.fluentlenium.core.domain.FluentList<? extends org.fluentlenium.core.domain.FluentWebElement> elements)
- Specified by:
switchToin interfaceorg.fluentlenium.core.navigation.NavigationControl
-
canTakeScreenShot
public boolean canTakeScreenShot()
- Specified by:
canTakeScreenShotin interfaceorg.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:
newComponentListin interfaceorg.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:
asFluentListin interfaceorg.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:
newFluentListin interfaceorg.fluentlenium.core.components.ComponentInstantiator
-
capabilities
public org.openqa.selenium.Capabilities capabilities()
- Specified by:
capabilitiesin interfaceorg.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:
newFluentListin interfaceorg.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:
newComponentListin interfaceorg.fluentlenium.core.components.ComponentInstantiator
-
newFluentList
public org.fluentlenium.core.domain.FluentList<org.fluentlenium.core.domain.FluentWebElement> newFluentList()
- Specified by:
newFluentListin interfaceorg.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:
asComponentListin interfaceorg.fluentlenium.core.components.ComponentInstantiator
-
css
public org.fluentlenium.core.css.CssSupport css()
- Specified by:
cssin interfaceorg.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:
asFluentListin interfaceorg.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:
findin interfaceorg.fluentlenium.core.search.SearchControl<org.fluentlenium.core.domain.FluentWebElement>
-
takeHtmlDump
public void takeHtmlDump(java.lang.String fileName)
- Specified by:
takeHtmlDumpin interfaceorg.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:
findin interfaceorg.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:
newComponentListin interfaceorg.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:
asComponentListin interfaceorg.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:
asComponentListin interfaceorg.fluentlenium.core.components.ComponentInstantiator
-
goToInNewTab
public void goToInNewTab(java.lang.String url)
- Specified by:
goToInNewTabin interfaceorg.fluentlenium.core.navigation.NavigationControl
-
window
public org.fluentlenium.core.action.WindowAction window()
- Specified by:
windowin interfaceorg.fluentlenium.core.navigation.NavigationControl
-
newComponentList
public <T> org.fluentlenium.core.domain.ComponentList<T> newComponentList(java.lang.Class<T> componentClass)
- Specified by:
newComponentListin interfaceorg.fluentlenium.core.components.ComponentInstantiator
-
newFluent
public org.fluentlenium.core.domain.FluentWebElement newFluent(org.openqa.selenium.WebElement element)
- Specified by:
newFluentin interfaceorg.fluentlenium.core.components.ComponentInstantiator
-
alert
public org.fluentlenium.core.alert.Alert alert()
- Specified by:
alertin interfaceorg.fluentlenium.core.alert.AlertControl
-
keyboard
public org.fluentlenium.core.action.KeyboardActions keyboard()
- Specified by:
keyboardin interfaceorg.fluentlenium.core.action.InputControl
-
await
public org.fluentlenium.core.wait.FluentWait await()
- Specified by:
awaitin interfaceorg.fluentlenium.core.wait.AwaitControl
-
isComponentClass
public boolean isComponentClass(java.lang.Class<?> componentClass)
- Specified by:
isComponentClassin interfaceorg.fluentlenium.core.components.ComponentInstantiator
-
newInstance
public <T> T newInstance(java.lang.Class<T> cls)
- Specified by:
newInstancein interfaceorg.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:
asFluentListin interfaceorg.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:
asComponentListin interfaceorg.fluentlenium.core.components.ComponentInstantiator
-
mouse
public org.fluentlenium.core.action.MouseActions mouse()
- Specified by:
mousein interfaceorg.fluentlenium.core.action.InputControl
-
inject
public org.fluentlenium.core.inject.ContainerContext inject(java.lang.Object container)
- Specified by:
injectin interfaceorg.fluentlenium.core.inject.FluentInjectControl
-
takeScreenshot
public void takeScreenshot()
- Specified by:
takeScreenshotin interfaceorg.fluentlenium.core.snapshot.SnapshotControl
-
getCookies
public java.util.Set<org.openqa.selenium.Cookie> getCookies()
- Specified by:
getCookiesin interfaceorg.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:
asFluentListin interfaceorg.fluentlenium.core.components.ComponentInstantiator
-
getCookie
public org.openqa.selenium.Cookie getCookie(java.lang.String name)
- Specified by:
getCookiein interfaceorg.fluentlenium.core.navigation.NavigationControl
-
newComponentList
public <T> org.fluentlenium.core.domain.ComponentList<T> newComponentList(java.lang.Class<T> componentClass, T... componentsList)- Specified by:
newComponentListin interfaceorg.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:
findin interfaceorg.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:
newFluentListin interfaceorg.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:
newComponentListin interfaceorg.fluentlenium.core.components.ComponentInstantiator
-
switchTo
public void switchTo(org.fluentlenium.core.domain.FluentWebElement element)
- Specified by:
switchToin interfaceorg.fluentlenium.core.navigation.NavigationControl
-
pageSource
public java.lang.String pageSource()
- Specified by:
pageSourcein interfaceorg.fluentlenium.core.navigation.NavigationControl
-
isComponentListClass
public boolean isComponentListClass(java.lang.Class<? extends java.util.List<?>> componentListClass)
- Specified by:
isComponentListClassin interfaceorg.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:
newFluentListin interfaceorg.fluentlenium.core.components.ComponentInstantiator
-
executeAsyncScript
public org.fluentlenium.core.script.FluentJavascript executeAsyncScript(java.lang.String script, java.lang.Object... args)- Specified by:
executeAsyncScriptin interfaceorg.fluentlenium.core.script.JavascriptControl
-
url
public java.lang.String url()
- Specified by:
urlin interfaceorg.fluentlenium.core.navigation.NavigationControl
-
newComponent
public <T> T newComponent(java.lang.Class<T> componentClass, org.openqa.selenium.WebElement element)- Specified by:
newComponentin interfaceorg.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:
newFluentListin interfaceorg.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:
asFluentListin interfaceorg.fluentlenium.core.components.ComponentInstantiator
-
el
public org.fluentlenium.core.domain.FluentWebElement el(org.openqa.selenium.WebElement rawElement)
- Specified by:
elin interfaceorg.fluentlenium.core.search.SearchControl<org.fluentlenium.core.domain.FluentWebElement>
-
events
public org.fluentlenium.core.events.EventsRegistry events()
- Specified by:
eventsin interfaceorg.fluentlenium.core.events.EventsControl
-
performanceTiming
public org.fluentlenium.core.performance.PerformanceTiming performanceTiming()
- Specified by:
performanceTimingin interfaceorg.fluentlenium.core.performance.PerformanceTimingControl
-
-